aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--compatibility-client/src/main/java/com/vaadin/v7/client/ui/VFilterSelect.java7
1 files changed, 6 insertions, 1 deletions
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 726efb5ec3..86fa8ed500 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
@@ -1420,7 +1420,12 @@ public class VFilterSelect extends Composite
* way, and they might be useful in a combo box where new items are
* allowed.
*/
- getElement().setAttribute("autocomplete", Math.random() + "");
+ 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() + "");
+ }
}
/**