javascript - tab into a disabled field - set a delay? -


i new angularjs developer , have been stuck on bit. have input updates on blur so:

<input ng-model="vin.value" ng-blur="onvinchange()"                        maxlength="22"> 

another select (custom built directive) relies on result onvinchange enabled or not.

here other select:

<auto-complete disabled="customer.selected.id === null || entryalreadyinsystem || customer.selected === ''"></auto-complete> 

the problem when auto-complete directive disabled previous attempt, if go input, change entry, , try tab in autocomplete again, onvinchange fires, autocomplete still disabled scrolls me way bottom of page , cursor doesn't move in autocomplete. angularjs way solve problem? when user tabs either allowed in input if it's enabled, or there's no scrolling action, perhaps allowed input, disabled. there anyway solve without setting delay on disabled attribute?


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -