]> source.dussan.org Git - vaadin-framework.git/commitdiff
Use random string for autocomplete attribute (#10950)
authorIlia Motornyi <elmot@vaadin.com>
Fri, 1 Jun 2018 10:19:14 +0000 (13:19 +0300)
committerGitHub <noreply@github.com>
Fri, 1 Jun 2018 10:19:14 +0000 (13:19 +0300)
Fixes #7820

client/src/main/java/com/vaadin/client/ui/VComboBox.java
compatibility-client/src/main/java/com/vaadin/v7/client/ui/VFilterSelect.java

index 72797991d16a1cc2f2e6638ca2a6df99d21be26d..6e0c400baada1ae3501e25910d62a765826e6cb5 100644 (file)
@@ -23,6 +23,7 @@ import java.util.HashSet;
 import java.util.List;
 import java.util.Locale;
 import java.util.Set;
+import java.util.UUID;
 import java.util.logging.Logger;
 
 import com.google.gwt.animation.client.AnimationScheduler;
@@ -1371,7 +1372,7 @@ public class VComboBox extends Composite implements Field, KeyDownHandler,
              * way, and they might be useful in a combo box where new items are
              * allowed.
              */
-            getElement().setAttribute("autocomplete", "nope");
+            getElement().setAttribute("autocomplete", Math.random() + "");
         }
 
         /**
index ea68373cd42a3fa0c226b16dbf34e73d676cd99a..920781a9c4098c19ab2bdb73c7ce2143d12c7a99 100644 (file)
@@ -1359,7 +1359,7 @@ public class VFilterSelect extends Composite
              * way, and they might be useful in a combo box where new items are
              * allowed.
              */
-            getElement().setAttribute("autocomplete", "nope");
+            getElement().setAttribute("autocomplete", Math.random() + "");
         }
 
         /**