[Input Masks Library] backspace or delete won't trigger InputMask_OnChange with single digit
Forge component by Labs
Application Type

When the loaded value is a single digit (1 - 9) and I delete the value without first changing it, using backspace or delete the InputMask_OnChange won't trigger.

The visible value is changed to 0, but when I inspect the HTML Value remains the same and when I save the value it isn't changed.

But when I change the value once and then delete the value everything works fine and the 0 value is saved.

Hopefully someone has a solution for this.

Kind regards,


I had the same issue and I fixed it by setting "0" as default value in the maskedvalue variable inside the inputmasklibrary 

Tnx that solved the problem.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.