Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not update undoValue in applyInputValue. #2757 #2758

Closed
wants to merge 2 commits into from

Conversation

niklaushug
Copy link

This is the proposed fix for #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.

- Instead rely on update of undoValue in blurEvent.
- Inputmask does not recognize a change from null to 0 because undoValue and nptValue is never null. Hence a change event must always be emitted on '0.00'.
- Another approach but way more labor-intensive would be to save null value.
@niklaushug niklaushug closed this May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant