AutocompleteOff Extension Add-on
Set autocomplete off for V7 and V8 field components
AutocompleteOffExtension is an extension for both Vaadin 7 and 8. It can be used to set the autocomplete attribute to disabled for Vaadin components extending
AbstractField, such as
The extensions sets the attribute of the input element to
autocomplete=off in Google Chrome, and to a random number in others that do not respect the 'off' value.
There is a reported regression in Chrome that potentially breaks the extension! You can follow the progress of the issue in the Chromium bug portal.
Version 1.1 of the addon adds two methods, setAutocompleteOffWithRandomNumber and setAutocompleteOffWithManualValue which can be used to circumvent issues with Chrome.
TextField field = new TextField(); AutocompleteOffExtension.setAutocompleteOff(field);
Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.
- Added setAutocompleteOffWithRandomNumber method
- Added setAutocompleteOffWithManualValue method
- Apache License 2.0
- Vaadin 8.0+
- Vaadin 7.7+ in 1.0