mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user