0

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.

jamesthemullet
  • 443
  • 4
  • 18

2 Answers2

3

Look at this...

<input autocomplete="off">

Source: HTML input autocomplete Attribute

AiAbdrahim
  • 309
  • 2
  • 13
1

Simple as this,

  <input type="email" name="email" autocomplete="off">
Gimnath
  • 824
  • 9
  • 11