ngMask icon indicating copy to clipboard operation
ngMask copied to clipboard

Using ng-model-options="{ updateOn: 'blur' }" breaks it

Open ShlomoRosenheimer opened this issue 9 years ago • 1 comments

Using ng-model-options="{ updateOn: 'blur' }" breaks the restrictions..................

ShlomoRosenheimer avatar Jul 30 '15 06:07 ShlomoRosenheimer

solved it by removing the controller.$isEmpty(controller.$modelValue), since when you have option on blur you may not have set the modelvalue yet, depending on other validation directives, and you always set the modelvalue in the end of the function, you could replace it with check if the viewvalue differs from 0

martea avatar Oct 22 '15 12:10 martea