No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    The element q-input is not accepting leading zeros when the type is number. the native element accepts leading zeros when editing.

    Framework
    2
    2
    528
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      edivaldoms last edited by edivaldoms

      Quasar: v0.16.0
      OS: Windows 10
      Node:
      NPM:
      Browsers: Chrome 66
      iOS:
      Android: 8
      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”

      1 Reply Last reply Reply Quote 0
      • nothingismagick
        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.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post