[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

@ -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', () => {