Use autocorrect and autocapitalize value of on instead of empty string

This commit is contained in:
Joseph D. Purcell 2022-12-07 18:20:31 -05:00 committed by Marijn Haverbeke
parent dd931d8f89
commit d4d7d3c4e1
1 changed files with 2 additions and 2 deletions

View File

@ -114,8 +114,8 @@ export function copyableRanges(cm) {
}
export function disableBrowserMagic(field, spellcheck, autocorrect, autocapitalize) {
field.setAttribute("autocorrect", autocorrect ? "" : "off")
field.setAttribute("autocapitalize", autocapitalize ? "" : "off")
field.setAttribute("autocorrect", autocorrect ? "on" : "off")
field.setAttribute("autocapitalize", autocapitalize ? "on" : "off")
field.setAttribute("spellcheck", !!spellcheck)
}