Skip to content

Commit

Permalink
Use autocorrect and autocapitalize value of on instead of empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
josephdpurcell authored and marijnh committed Dec 9, 2022
1 parent dd931d8 commit d4d7d3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/input/input.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit d4d7d3c

Please sign in to comment.