#2706·Inputmask

When updating input tag(inputmask configured) value programmatically, incorrect value gets set. Appears to be happening for certain masks(\\aa\\aa) only.

Author: Nagarjuna-BCreated Apr 12, 2023Updated Jul 31, 2026
LabelsMainLife example included => priority
  • I have an input tag with mask - "\aa\aa". When I try to update input tag value programmatically with "aa", which is a valid value, the input tag shows up aaa_, an invalid value. The issue appears to be happening when the mask has a definition char as a literal and you try to enter characters same as definition character. For example, this issue happens for mask - "\99\99" and input value "99" too. Issue wont happen if input value ends with value other than '9' (other than 'a' for original example)
  • https://jsfiddle.net/r1hs7edb/3/
  • OS: Windows
  • Browser: Chrome
  • Inputmask version: 5.0.8 (latest)