代码之家  ›  专栏  ›  技术社区  ›  agad

如何用Vaadin禁用field在Chrom中的auoifilling?

  •  0
  • agad  · 技术社区  · 5 年前

    在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>
    

    在瓦丁 身份证件 对于内部元素还是禁用Chrome中的完成?

    0 回复  |  直到 5 年前
        1
  •  0
  •   Tatu Lund    5 年前

    Chrome的autocomplete属性的行为在一段时间前发生了变化,但直到最近我们才根据Vaadin 8中的行为对我们的实现进行了更改。

    我们的问题跟踪者对此进行了长时间的讨论;:: https://github.com/vaadin/framework/issues/11437