From ca00a8a6526d2cfed69cbf00436ea2e4a3284bf4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Olli=20Tiet=C3=A4v=C3=A4inen?= Date: Mon, 20 May 2019 15:54:31 +0300 Subject: [PATCH] fixes #11437 for V7 (#11588) --- .../src/main/java/com/vaadin/client/ui/VFilterSelect.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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() + ""); + } } /** -- 2.39.5