Currently, I have an input with a ui mask for the phone. If the entered value is not the full length of the mask, it clears the input. Is there a way to set u-mask so that it does not clear the input when pressed or lost focus?
<input ui-mask="(999) 999-9999" type="text"/>
You can set the ui-options attribute, which sets the parameter:
<input ui-mask="(999) 999-9999" ui-options="{clearOnBlur: false}" type="text" />
I really did not find the exact answer I wanted, but this is the solution I went with.
<input ui-mask="?(999) 999-9999" type="text"/>
Just so that I can use ui-mask and it doesn't clear the field.
Source: https://habr.com/ru/post/979962/More articles:Unable to create Set from String array - javaWhy can't I parse YAML with Ruby? - ruby | fooobar.comHow to stop one thread from changing the array used by another thread? - javaCreate a dynamic color scale d3 between two color values - d3.jsWhere to store shader code in an Android application - androidCustom taskbar with multiple open books - c #Intermittent error org.hibernate.PersistentObjectException: remote object passed for save - javaentityManager.getTransaction (). rollback () separates objects? - javaFormatting strings in triangles in Haskell - formattingspringboot application on Jboss EAP, servlet context not lodaed - spring-bootAll Articles