RobinHerbots / Inputmask

Input Mask plugin
https://robinherbots.github.io/Inputmask/
MIT License
6.39k stars 2.17k forks source link

Negative limits for numeric inputs #2796

Open step0726 opened 3 months ago

step0726 commented 3 months ago

I need put negative limits for numeric input in my application, when there is a negative max limit, it does not allow to enter input.

Here is an example : https://codepen.io/hpgtlbnu-the-vuer/pen/ExzXOPm

Is there a configuration or something wrong ?

Thank you for your help

Techn1c4l commented 3 months ago

@RobinHerbots I think noValuePatching should allow to input any valid numeric value (including appropriate group and decimal separators) even if it's outside the min - max range. Then if the field loses focus, the Inputmask should patch the value according to set limits.

RobinHerbots commented 3 months ago

@Techn1c4l ,

The noValuePatching is about https://robinherbots.github.io/Inputmask/#/documentation#novaluepatching

@step0726 ,

I will have a look at the issue.