在 Chrome 中的所有输入字段中都会出现无意义的文本 - 一些文本是写在其他文本字段中的。它似乎与默认 ID 相关联。对于使用方法设置自定义 id 的文本字段,它可能可以解决setId(..)
。但它不适用于日期字段、组合框等,而它id
是为父级div
而不是输入本身设置的,例如:
<div role="combobox" class="v-filterselect v-widget small v-filterselect-small v-has-width" id="Field-1553856663994" style="width: 100%;" autocomplete="off">
<input type="text" class="v-filterselect-input" autocomplete="nope" id="gwt-uid-134" aria-labelledby="gwt-uid-133" style="width: 100%;" tabindex="0" dir="">
<div class="v-filterselect-button" aria-hidden="true" role="button"></div></div>
Vaadin 的方式是设置id
内部元素还是禁用 Chrome 中的完成?