What would cause Chrome autofill to stop working?

后端 未结 6 1490
既然无缘
既然无缘 2021-01-04 09:02

I\'ve got a new site we\'re working that uses HTML5. Everything validates except for the LESS stylesheets and the Facebook tags. However, Chrome will not autofill properly.

6条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-04 09:41

    I have just fighted with this issue for a while, I found out that a "name" attribute with a dash like "email-2" would cause Chrome not to autocomplete the field. In my case I have changed it to email2 and now it works. It only affects the "name" attribute, while the "id" attribute does not make any difference.

    I hope this help someone to save time with such a silly bug.

    Greetings from Argentina!

提交回复
热议问题