]> source.dussan.org Git - vaadin-framework.git/commitdiff
fixes #11437 for V7 (#11588)
authorOlli Tietäväinen <ollit@vaadin.com>
Mon, 20 May 2019 12:54:31 +0000 (15:54 +0300)
committerGitHub <noreply@github.com>
Mon, 20 May 2019 12:54:31 +0000 (15:54 +0300)
client/src/main/java/com/vaadin/client/ui/VFilterSelect.java

index 664498777bdcac264243d528c6d7beacb23f5085..148157cb844cb31a5ef9dcf3597af8725d592164 100644 (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() + "");
+            }
         }
 
         /**