[autocomplete] disable spellcheck from also trying to autocomplete

This commit is contained in:
Shish 2024-01-08 19:14:42 +00:00
parent ae327f5a2a
commit 5fccbc5ad5

View file

@ -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);