The element q-input is not accepting leading zeros when the type is number. the native element accepts leading zeros when editing.
OS: Windows 10
Browsers: Chrome 66
Any other software related to your bug:
What did you get as the error?
The element q-input is not accepting leading zeros when the type is number.
the native element accepts leading zeros when editing.
<input type="number" value="0001">maintains “0001”
<q-input type="number" value="0001" />when loading displays “0001”, but when editing, it is removing the leading zeros “1”
This can be disruptive when entering zip code or documents that start with the number zero.
Example of credit card: “0002999999999999” replaces “2999999999999”
nothingismagick last edited by
Have you made an issue at the github repo? I have heard about similar issues with the input type. Have you looked to see if there are similar issues on github? One way to solve this is to use the amazing v-mask as a plugin.