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 TextField
and DateField
.
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.
UPDATE
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.
Sample code
TextField field = new TextField(); AutocompleteOffExtension.setAutocompleteOff(field);
Links
Compatibility
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.
Version
Version 1.1.0
- Added setAutocompleteOffWithRandomNumber method
- Added setAutocompleteOffWithManualValue method
- Released
- 2020-01-14
- Maturity
- EXPERIMENTAL
- License
- Apache License 2.0
Compatibility
- Framework
- Vaadin 8.0+
- Vaadin 7.7+ in 1.0
- Browser
- N/A
AutocompleteOff Extension Add-on - Vaadin Add-on Directory
Set autocomplete off for V7 and V8 field componentsAbstractField
, such as TextField
and DateField
.
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.
#### **UPDATE**
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.