Browse Source

fixes #11437 for V7 (#11588)

tags/7.7.21
Olli Tietäväinen 5 years ago
parent
commit
ca00a8a652
No account linked to committer's email address
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      client/src/main/java/com/vaadin/client/ui/VFilterSelect.java

+ 6
- 1
client/src/main/java/com/vaadin/client/ui/VFilterSelect.java View File

@@ -1416,7 +1416,12 @@ public class VFilterSelect extends Composite
* way, and they might be useful in a combo box where new items are
* allowed.
*/
getElement().setAttribute("autocomplete", "nope");
if (BrowserInfo.get().isChrome()) {
// Chrome supports "off" and random number does not work with Chrome
getElement().setAttribute("autocomplete", "off");
} else {
getElement().setAttribute("autocomplete", Math.random() + "");
}
}

/**

Loading…
Cancel
Save