Prevent Email suggestion autocomplete in Chrome

Chrome’s version as 2023/11/16 has a little quirk – it will “helpfully” provide a list of emails for you to choose from for certain input fields.

It appears that any field with “email” as part of the “name” argument will result in the following:

You can disable the functionality by changing the name of the field, but why let Chrome push you around? You can use a silly hack to overcome this problem!

Adding role="presentation" to the fields will prevent the email suggestions.

Leave a Reply

Your email address will not be published. Required fields are marked *