You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 8, 2020. It is now read-only.
//we need this check. What could happen if you don't have it is that you'll set the model value without the user
641
645
//actually doing anything. Meaning, things like pristine and touched will be set.
642
646
if(valAltered){
643
-
scope.$apply(function(){
644
-
controller.$setViewValue(valMasked);// $setViewValue should be run in angular context, otherwise the changes will be invisible to angular and user code.
645
-
});
647
+
$timeout(function(){
648
+
scope.$apply(function(){
649
+
controller.$setViewValue(valMasked);// $setViewValue should be run in angular context, otherwise the changes will be invisible to angular and user code.
0 commit comments