I am developing an app with input field, and for pattern using angular js ui-mask.
HTML
<input type="tel" class="input-field " data-ng-model="registrationField.debitcard" ui-mask="9999 9999 9999 9999" placeholder="Enter ATM/Debit Card Number" ui-mask-placeholder ui-mask-placeholder-char="space" id="debitCardFld" ui-options="{clearOnBlur: false}"/>
- With type="text" the code works fine.
- But when we use type="password", on focus of the field, the spaces in pattern is also masked.
Only when the user types, it has to mask the characters.
Is there any way to achieve it?
Aucun commentaire:
Enregistrer un commentaire