Allow spellcheck in textarea fields

(closes #4471)
This commit is contained in:
Bryan Housel
2017-10-31 22:45:24 -04:00
parent 4d1c6796c2
commit 672a555229

View File

@@ -255,9 +255,11 @@ export function utilFunctor(value) {
export function utilNoAuto(selection) {
var isText = (selection.size() && selection.node().tagName.toLowerCase() === 'textarea');
return selection
.attr('autocomplete', 'off')
.attr('autocorrect', 'off')
.attr('autocapitalize', 'off')
.attr('spellcheck', 'false');
.attr('spellcheck', isText ? 'true' : 'false');
}