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

    [V1] Input textfield with numeric value and mask

    Framework
    1
    1
    156
    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.
    • P
      PicosFpm last edited by

      Hello, there is an error with input textfield component with a numeric value and a given string mask. When calling this.__unmask(this.value) is giving an error.

      __unmask (val) {
            return val !== void 0 && val !== null
              ? val.replace(/[\W _]/g, '')
              : val
          },
      

      In this method, it should be (’’ + val).replace() to cast numeric values into string value, or it will crash as replace is not a function

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