Underline input field when typing

I have an input field that displays an underline when I start typing. This is not an auto-correction underline, but a black underline, as I tried to turn off auto-completion and spell checking. This only appears on phones with Android bean hardware.

<input type="search" id="searchInput" class="searchInput" placeholder="placeholder" /> 

underline

I removed all css from the input tag, and will do nothing, turn off this underline.

As soon as I remove the focus from the input field, the underline goes away.

Any idea how to prevent this?

+6
source share
2 answers

I believe that your problem is the autocomplete function built into the phone, and not based on the settings of the web page. Try something like this:

Just go to Settings> Language and input> Android keyboard settings> Advanced settings> and uncheck the box next to "Predict the next word"

0
source

Have you tried adding css to make sure this is not the case?

 text-decoration: none; 
0
source

Source: https://habr.com/ru/post/955502/


All Articles