aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIlia Motornyi <elmot@vaadin.com>2018-06-01 13:19:14 +0300
committerGitHub <noreply@github.com>2018-06-01 13:19:14 +0300
commitda114a17112a82ee5d188bc5d27d1df8c3a889bc (patch)
treef37b0f6688bdb754d8aa4636e3201f595f9a4364
parent948b863701b0db388e5e81e9427526bfb8aa7802 (diff)
downloadvaadin-framework-da114a17112a82ee5d188bc5d27d1df8c3a889bc.tar.gz
vaadin-framework-da114a17112a82ee5d188bc5d27d1df8c3a889bc.zip
Use random string for autocomplete attribute (#10950)
Fixes #7820
-rw-r--r--client/src/main/java/com/vaadin/client/ui/VComboBox.java3
-rw-r--r--compatibility-client/src/main/java/com/vaadin/v7/client/ui/VFilterSelect.java2
2 files changed, 3 insertions, 2 deletions
diff --git a/client/src/main/java/com/vaadin/client/ui/VComboBox.java b/client/src/main/java/com/vaadin/client/ui/VComboBox.java
index 72797991d1..6e0c400baa 100644
--- a/client/src/main/java/com/vaadin/client/ui/VComboBox.java
+++ b/client/src/main/java/com/vaadin/client/ui/VComboBox.java
@@ -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() + "");
}
/**
diff --git a/compatibility-client/src/main/java/com/vaadin/v7/client/ui/VFilterSelect.java b/compatibility-client/src/main/java/com/vaadin/v7/client/ui/VFilterSelect.java
index ea68373cd4..920781a9c4 100644
--- a/compatibility-client/src/main/java/com/vaadin/v7/client/ui/VFilterSelect.java
+++ b/compatibility-client/src/main/java/com/vaadin/v7/client/ui/VFilterSelect.java
@@ -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() + "");
}
/**