Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent corrections and completions in search field
In particular mobile browsers use correction mechanisms on input fields. Search will often be done with technical terms or even class/method/etc names that these correction mechanisms do not know, resulting in unwanted changes. This PR deactivates these correction mechanisms. While I haven't been able to find official reference documentation on these input attributes, there are multiple sources, describing this, e.g. References: - Autocomplete: https://www.w3schools.com/howto/howto_html_autocomplete_off.asp - Spellckeck: https://www.w3schools.com/howto/howto_html_spellcheck_disable.asp I did not find official reference docs on autocorrect and autocapitalize, but they are mentioned in various sources, e.g. - https://mgearon.com/html/disable-autocomplete-autocapitalize-and-autocorrect/ - https://stackoverflow.com/questions/35513968/disable-auto-correct-in-safari-text-input - https://davidwalsh.name/disable-autocorrect and it works, as can easily be checked with a mobile device on the demos in the above links.
- Loading branch information