我的網站存在問題,Chrome autocomplete
似乎無法正常工作。 它一直在努力,但並不一致。自動完成功能無法在Chrome上工作
例如,我有一個input
場這樣的:
<input type="text" class="gwt-TextBox Inputfield TextInputfield form-control" maxlength="40" name="name" autocomplete="name" width="0" style="max-width: 26em; width: 100%;">
當我開始進入我的名,autocomplete
下拉將打開如預期,但是當我在autocomplete
滴選擇我的名字下降,沒有任何反應,但下拉關閉。
也不例外記錄在控制檯中。
帶字段的頁面是here。
非常感謝 - 愚蠢的我!我最終在輸入字段周圍添加了表單標籤,即使它沒有用作帶有submit和等的表單,以便在選擇名稱時允許自動填充來填充所有字段。 –
不如「的」使用自動完成的提示,而不是隻說在輸入電平 ^這也可以讓你有你想要的任何輸入名稱。以下是html表單輸入的詳細自動填充/自動填充標記列表:https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-autocomplete-name – catalint