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 has been archived by the owner on Jan 24, 2019. It is now read-only.
Is there currently an option to prevent ui-mask from running validation (in other words, just to provide masking and not do any validation.
I am trying to use ui-mask with my own custom validation (using the validation guide provided here http://docs.angularjs.org/guide/forms). Although the validation itself works when you add for '_' to account for how ui-mask works, the value returned by the validation is always set by ui-mask, I wan't the return value of the validation to be set by my own validator
The personal use case is pretty simple, I have a date in an input field which is the form 99-99-9999. I however want to use my own validator (a wrapper around moment.js) to actually check if the date is valid. Furthermore, my own validator actually returns a date object (which is stored in the ngModel). If I try to use ui-mask when combined with my validator, although it uses my validator, the variable that ends up getting returned to the model ends up being a string, not a date object
The text was updated successfully, but these errors were encountered:
UI.Utils modules was split in individuals repositories. If still valid, please consider re-submitting on its dedicated repository: https://github.com/angular-ui/ui-mask
Is there currently an option to prevent ui-mask from running validation (in other words, just to provide masking and not do any validation.
I am trying to use ui-mask with my own custom validation (using the validation guide provided here http://docs.angularjs.org/guide/forms). Although the validation itself works when you add for '_' to account for how ui-mask works, the value returned by the validation is always set by ui-mask, I wan't the return value of the validation to be set by my own validator
The personal use case is pretty simple, I have a date in an input field which is the form 99-99-9999. I however want to use my own validator (a wrapper around moment.js) to actually check if the date is valid. Furthermore, my own validator actually returns a date object (which is stored in the ngModel). If I try to use ui-mask when combined with my validator, although it uses my validator, the variable that ends up getting returned to the model ends up being a string, not a date object
The text was updated successfully, but these errors were encountered: