You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, when using auto-formatter and entering the numbers into input field, some events are prevented. This happens right before space character is automatically inserted, e.g. when entering 5213 2…:
5, got events
2, got events
1, got events
3, space is inserted, events are not fired
2, got events
…
This makes data-binding to fail, because we can't know when value is changed (I'm integrating it with custom Angular 2+ component).
What could be done about this?
Thanks!
The text was updated successfully, but these errors were encountered:
slavafomin
changed the title
Input event is prevented when space is inserted
Input event is prevented on auto-formatting
Sep 27, 2017
The keydown event is fired every time, so we could rely on it. But the value is not yet updated when it's fired, so we need to wait for some time until it does.
This is kinda ugly, but works.
I would rather listen for input event, which is sealed by the library.
Hello!
Thank you for this great module!
However, when using auto-formatter and entering the numbers into input field, some events are prevented. This happens right before space character is automatically inserted, e.g. when entering
5213 2…
:…
This makes data-binding to fail, because we can't know when value is changed (I'm integrating it with custom Angular 2+ component).
What could be done about this?
Thanks!
The text was updated successfully, but these errors were encountered: