瀏覽代碼

fixes #11437 for V7 (#11588)

tags/7.7.21
Olli Tietäväinen 5 年之前
父節點
當前提交
ca00a8a652
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 6 行新增1 行删除
  1. 6
    1
      client/src/main/java/com/vaadin/client/ui/VFilterSelect.java

+ 6
- 1
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() + "");
}
}

/**

Loading…
取消
儲存