angular-ui / ui-mask

Mask on an input field so the user can only type pre-determined pattern
https://htmlpreview.github.io/?https://github.com/angular-ui/ui-mask/master/demo/index.html
MIT License
391 stars 258 forks source link

Input not fully clearing when invalidated from programmatically set ng-model #219

Open andydion opened 7 years ago

andydion commented 7 years ago

When bookTripForm.pickup.phone is set programmatically to a value such as "5555555", (7 digits), the input field is empty, but the label is not in the "grey placeholder" state, but shrunken and moved up and darkened as though there was actually values in the empty input field.

Example HTML below:

{{ 'VALIDATION.PHONE' | translate}}