Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Browser autofill options overlap angular material autocomplete options

In angular material, material autocomplete is working fine, but the browser auto fill options are overlapping the material autocomplete popup. How to turn off autocomplete for a specific application without turning off browser auto-fill? Reference image attached.

Example image showing the Material Autocomplete popup overlapping the browser autocomplete

like image 711
BlueCloud Avatar asked Oct 25 '25 01:10

BlueCloud


2 Answers

its also working

<input type="search" />
like image 72
BlueCloud Avatar answered Oct 27 '25 15:10

BlueCloud


If you want to prevent browser (especially chrome) autocomplete trigger on an input you'd have to override its default behaviour. Google doesn't respect autocomplete="off". From my experience thing that always worked was using this autocomplete="randomstring", but this is more of a workaround that a solution. You might find more ways to disable it here.

like image 45
karoluS Avatar answered Oct 27 '25 13:10

karoluS



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!