[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
|
@ -201,6 +201,9 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||||
// disable built-in autocomplete
|
// disable built-in autocomplete
|
||||||
element.setAttribute('autocomplete', 'off');
|
element.setAttribute('autocomplete', 'off');
|
||||||
|
|
||||||
|
// safari treats spellcheck as a form of autocomplete
|
||||||
|
element.setAttribute('spellcheck', 'off');
|
||||||
|
|
||||||
// when element is focused, add completion block
|
// when element is focused, add completion block
|
||||||
element.addEventListener('focus', () => {
|
element.addEventListener('focus', () => {
|
||||||
updateCompletions(element);
|
updateCompletions(element);
|
||||||
|
|
Reference in a new issue