RobinHerbots / Inputmask

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

Do not update undoValue in applyInputValue. #2757 #2758

Closed niklaushug closed 1 month ago

niklaushug commented 7 months ago

This is the proposed fix for https://github.com/RobinHerbots/Inputmask/issues/2757.

Please scrutinize if inputmask.undoValue = nptValue and $input.trigger("change"); is executed whenever it is needed.

I am not sure if in every situation all conditionals of blurEvent are truthy and if it is possible to dodge blurEvent altogether.