candreoliveira / ngMask

Best Angular mask alternative! No jQuery, pure JS. About ~6kb!
http://candreoliveira.github.io/#/ngMask
ISC License
419 stars 171 forks source link

Problem with dirty flag during initialisation #110

Open sigMacity opened 8 years ago

sigMacity commented 8 years ago

Using the following HTML the $dirty flag is clobbered on initialisation:

I'm guessing it is related to mask-clean being set to true, though I haven't traced the code through.

sigMacity commented 8 years ago

...and here is the code! <input type="text" name="thedate" mask="9999/19/39" mask-clean="true" mask-restrict="accept" ng-model="theDate" required></input>

sigMacity commented 8 years ago

The dist folder isn't up-to-date - it appears the bug has been corrected in src/directives, but not in dist.

fsarlenga commented 8 years ago

Yes, I opened an issue about the dist folder not being up to date, issue #109