aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlli Tietäväinen <ollit@vaadin.com>2019-05-20 15:54:31 +0300
committerGitHub <noreply@github.com>2019-05-20 15:54:31 +0300
commitca00a8a6526d2cfed69cbf00436ea2e4a3284bf4 (patch)
tree55e56fbf194d6175a07c5494c4ef230149b2c448
parent96624cdd70a8b8b8bde6cca8835764e0d1ea4d05 (diff)
downloadvaadin-framework-ca00a8a6526d2cfed69cbf00436ea2e4a3284bf4.tar.gz
vaadin-framework-ca00a8a6526d2cfed69cbf00436ea2e4a3284bf4.zip
fixes #11437 for V7 (#11588)
-rw-r--r--client/src/main/java/com/vaadin/client/ui/VFilterSelect.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/client/src/main/java/com/vaadin/client/ui/VFilterSelect.java b/client/src/main/java/com/vaadin/client/ui/VFilterSelect.java
index 664498777b..148157cb84 100644
--- a/client/src/main/java/com/vaadin/client/ui/VFilterSelect.java
+++ b/client/src/main/java/com/vaadin/client/ui/VFilterSelect.java
@@ -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() + "");
+ }
}
/**