javascript - How can i prevent LastPass (chrome extension) from filling out my input field - make LastPass ignore my input field -
i want ignore last pass fill out input field, i'm using angularjs , html5 extention auto fill ofllowing input field.
<input id="search-publishers-box" type="text" placeholder="search publishers" data-ng-model="publisherssearchquery.name" class="search-field-text" autocomplete="off"/>
what should in order prevent last pass doing it, tried change place holder, model, adding autocomplete="off" change id of input field
non of them worked me.
any suggestions?
here's take on this, , solve autofill problems (yes, they're obscure happen) – watch fields changes. since you're using angularjs
, pretty easy $watch
, or if you're using jquery
, use .change
and then, whenever there's change of more 1 character @ 1 time, can assume autofill , not typing.
note breaks if decides paste field.
another workaround allow change on field when there's keypress
.
edit here's fiddle
Comments
Post a Comment