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
We are using ValueChangeMode.TIMEOUT on fields (text field etc) with 3500 timeout.
However it is not working as it should.
Sometimes it calls listener on the first character and also when using backspace to delete in it. Then magically working for every other characters until it does not.
We upgraded from vaadin 8 and not this is not working properly. (like many other things reported already)
Expected outcome
When value change it should wait timeout amount before calling value change listener.
Not before timeout and not after timeout, but aprox on timeout (+/- 100ms).
To me it seems like a result of using registration.throttle() for ValueChangeMode.TIMEOUT - see this logic.
Based on #4945 where this mode was added, I think the current behavior is kind of as expected:
Syncs the value at defined intervals as long as the value changes from one event to the next.
As a workaround, consider using ValueChangeMode.LAZY which uses debounce() instead of throttle().
Description
We are using ValueChangeMode.TIMEOUT on fields (text field etc) with 3500 timeout.
However it is not working as it should.
Sometimes it calls listener on the first character and also when using backspace to delete in it. Then magically working for every other characters until it does not.
We upgraded from vaadin 8 and not this is not working properly. (like many other things reported already)
Expected outcome
When value change it should wait timeout amount before calling value change listener.
Not before timeout and not after timeout, but aprox on timeout (+/- 100ms).
Also should be consistent.
Minimal reproducible example
Steps to reproduce
Environment
Vaadin version(s): latest 23 or latest 24
Browser: Edge, Chrome..it does not matter
Browsers
Issue is not browser related
The text was updated successfully, but these errors were encountered: