This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
ng-maxlength (or ng-minlength) attribute causes execution of input's ng-change expression #9001
Closed
Description
Hello,
I have stumbled upon an issue with ng-maxlength
(same with ng-minlength
) attribute of the text input (and textarea). After adding the validation and setting programmatically value of the input, the ng-change
expression is being evaluated, while according to the docs, it should be executed only after user interaction.
I'm not 100% sure, but the issue occurs when the value being set for the input is valid.
Live example here: http://plnkr.co/edit/Fbbfm3vsYsAFmGVAL0Q8?p=preview