mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-14 21:28:11 +02:00
Fix issue where Chrome would attempt to autofill fields (close #5818)
This commit is contained in:
@@ -305,7 +305,8 @@ export function utilNoAuto(selection) {
|
||||
var isText = (selection.size() && selection.node().tagName.toLowerCase() === 'textarea');
|
||||
|
||||
return selection
|
||||
.attr('autocomplete', 'off')
|
||||
// assign 'new-password' even for non-password fields to prevent browsers (Chrome) ignoring 'off'
|
||||
.attr('autocomplete', 'new-password')
|
||||
.attr('autocorrect', 'off')
|
||||
.attr('autocapitalize', 'off')
|
||||
.attr('spellcheck', isText ? 'true' : 'false');
|
||||
|
||||
Reference in New Issue
Block a user