pstanoev / simple-svelte-autocomplete

Simple Autocomplete / typeahead component for Svelte
http://simple-svelte-autocomplete.surge.sh/
MIT License
469 stars 79 forks source link

Add autocomplete="off" attribute to input element #82

Closed konrad-pawlus closed 3 years ago

konrad-pawlus commented 3 years ago

When browser stores in history values entered to search input it starts to propose it's own autocomplete dropdown which hides component list. This thread suggests adding autocomplete="off" as solution: https://stackoverflow.com/questions/2186290/disable-autocomplete-via-css

It would be really useful.

azmeuk commented 3 years ago

Hi. You can already do this with the html5autocomplete attribute. It should is off by default.

konrad-pawlus commented 3 years ago

Thanks for your swift reply. Indeed it is, I somehow missed it when investigating with developer tools. Somehow my Chrome is ignoring it. Need to dig into it in more detail. Thank you!

On Tue, Jul 20, 2021 at 8:43 PM Éloi Rivard @.***> wrote:

Hi. You can already do this with the html5autocomplete attribute. It should is off by default.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pstanoev/simple-svelte-autocomplete/issues/82#issuecomment-883612946, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUC6IZWG3AD5JX2ILLPM25DTYW7ULANCNFSM5AVFGCGA .

--

Konrad,

p: +48 608 500 834 e: @.***