RobinHerbots / Inputmask

Input Mask plugin

Home Page:https://robinherbots.github.io/Inputmask/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Currency input field will not accept minus sign with numpad

ryanalbrecht opened this issue · comments

  • Describe the bug
    I have an currency input where I allow a minus sign. The minus sign work if I use the minus key on top row of the keyboard, but if I use the minus sign using the numpad it clears the input field. (tried with numlock on and off)

  • Add a link to a codepen, jsfiddle or other example page which shows the problem

<input 
  type="text" 
  class="form-control text-end" 
  name="quantity" 
  value=""
  data-inputmask="'alias':'currency','allowMinus':true"
  autocomplete="off"
  required
  id="trade-form-quantity"
>
  • OS:
    Windows 11

  • Browser
    Chrome Version 111.0.5563.147 (Official Build) (64-bit)

  • Inputmask version
    inputmask@5.0.7

Nevermind, seems this was fixed in 5.0.8