From: Olli Tietäväinen Date: Mon, 20 May 2019 12:54:31 +0000 (+0300) Subject: fixes #11437 for V7 (#11588) X-Git-Tag: 7.7.21~19 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ca00a8a6526d2cfed69cbf00436ea2e4a3284bf4;p=vaadin-framework.git fixes #11437 for V7 (#11588) --- 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() + ""); + } } /**