Vaadin 在 TextField 中禁用浏览器拼写检查?

Vaadin Disable Browser Spell Checking in TextField?

Vaadin 7.6.2

如何在 TextField 组件中禁用拼写检查?用 Google 搜索 Stack,给出的几个答案不起作用。

Viritin add-on(使用最新版本)添加到您的项目,然后使用以下代码配置您的字段:

TextField field = new MTextField().withSpellCheckOff();

或者您可以使用低级别 API 配置 html 元素(例如 TextArea);

new HtmlElementPropertySetter(yourTextInputComponent).setProperty(
                "spellcheck", false);