Reputation: 501
Is it possible to stop the Chrome autocomplete suggestions dropdown taking focus?
I have an input box within an overlay, and the overlay closes if an element outside of the overlay receives focus.
Hence if a user uses autocomplete to fill out this input box, the overlay closes before the overlay can fire an event.
Just to clarify - using autocomplete: off
will solve my problem. But I was hoping to keep autocomplete working as a feature, and just remove the focus.
Upvotes: 1
Views: 1252
Reputation: 1070
Simple as this,
<input type="email" name="email" autocomplete="off">
Upvotes: 1
Reputation: 309
Look at this...
<input autocomplete="off">
Source: HTML input autocomplete Attribute
Upvotes: 3