[autocomplete] disable spellcheck from also trying to autocomplete
This commit is contained in:
parent
ae327f5a2a
commit
5fccbc5ad5
1 changed files with 3 additions and 0 deletions
|
@ -200,6 +200,9 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||
|
||||
// disable built-in autocomplete
|
||||
element.setAttribute('autocomplete', 'off');
|
||||
|
||||
// safari treats spellcheck as a form of autocomplete
|
||||
element.setAttribute('spellcheck', 'off');
|
||||
|
||||
// when element is focused, add completion block
|
||||
element.addEventListener('focus', () => {
|
||||
|
|
Reference in a new issue