Skip to content

Commit 97f6acc

Browse files
committed
Correctly use the string 'off' for autocapitalize and autocorrect
Rather than 'false', which is ignored Issue codemirror#3403
1 parent ebecdd4 commit 97f6acc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/input/input.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ export function copyableRanges(cm) {
114114
}
115115

116116
export function disableBrowserMagic(field, spellcheck, autocorrect, autocapitalize) {
117-
field.setAttribute("autocorrect", !!autocorrect)
118-
field.setAttribute("autocapitalize", !!autocapitalize)
117+
field.setAttribute("autocorrect", autocorrect ? "" : "off")
118+
field.setAttribute("autocapitalize", autocapitalize ? "" : "off")
119119
field.setAttribute("spellcheck", !!spellcheck)
120120
}
121121

0 commit comments

Comments
 (0)