jQuery-Autocomplete icon indicating copy to clipboard operation
jQuery-Autocomplete copied to clipboard

Fix disabling autofill in last versions of Chrome

Open ivanmtw opened this issue 8 years ago • 0 comments

Last versions of Google Chrome ignore property 'autocomplete="off"'. We need change it to 'autocomplete="new-password"' for disabling internal Chrome autofill feature when plugin initialized. It works for any text fields, not only for password text fields.

Change // Remove autocomplete attribute to prevent native suggestions: that.element.setAttribute('autocomplete', 'off'); to: // Remove autocomplete attribute to prevent native suggestions: that.element.setAttribute('autocomplete', 'new-password');

Proof: https://stackoverflow.com/questions/15738259/disabling-chrome-autofill

ivanmtw avatar Feb 10 '18 14:02 ivanmtw