[V1] Input textfield with numeric value and mask

  • 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

Log in to reply