jamesthemullet
jamesthemullet

Reputation: 501

Stop Chrome Autocomplete Dropdown Taking Focus

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.

Any suggestions? Thanks. enter image description here

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

Answers (2)

Gimnath
Gimnath

Reputation: 1070

Simple as this,

  <input type="email" name="email" autocomplete="off">

Upvotes: 1

AiAbdrahim
AiAbdrahim

Reputation: 309

Look at this...

<input autocomplete="off">

Source: HTML input autocomplete Attribute

Upvotes: 3

Related Questions