Skip to content

Commit d4d7d3c

Browse files
josephdpurcellmarijnh
authored andcommitted
Use autocorrect and autocapitalize value of on instead of empty string
1 parent dd931d8 commit d4d7d3c

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 ? "" : "off")
118-
field.setAttribute("autocapitalize", autocapitalize ? "" : "off")
117+
field.setAttribute("autocorrect", autocorrect ? "on" : "off")
118+
field.setAttribute("autocapitalize", autocapitalize ? "on" : "off")
119119
field.setAttribute("spellcheck", !!spellcheck)
120120
}
121121

0 commit comments

Comments
 (0)