I currently have an input with a ui-mask for a phone. If the value that is inputted isn't the full length of the mask, it clears the input. Is there a way to set the ui-mask so that it doesn't clear the input upon clicking or losing focus?
<input ui-mask="(999) 999-9999" type="text"/>
You can set a ui-options attribute that sets the option:
<input ui-mask="(999) 999-9999" ui-options="{clearOnBlur: false}" type="text" />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With