-
Notifications
You must be signed in to change notification settings - Fork 161
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
fix: prevent flush changes when synchronizing properties #15583
Conversation
e645d8a
to
9ab636b
Compare
flow-client/src/main/java/com/vaadin/client/flow/binding/SimpleElementBindingStrategy.java
Outdated
Show resolved
Hide resolved
flow-client/src/main/java/com/vaadin/client/flow/binding/SimpleElementBindingStrategy.java
Show resolved
Hide resolved
Shall we add some tests? |
I'll try to see if I'm able to create at least a GWT test |
279a304
to
c8458a8
Compare
DOM events related to property synchronization must not flush changes to avoid wrong execution order of events on server side. For example, an 'has-input-value-changed' event may occur before the actual value of a field has been changed and a flush will trigger listeners with an old value. Fixes #15615
c8458a8
to
4673fff
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Shouldn't this fix be prioritized because the feature it fixes was also backported and is released in 23.3 and below? |
@mcollovati The solution looks good to me. As for tests, I would leave that to @manolo to review as I'm not familiar with GWT. |
Thanks guys 🙇♂️ |
DOM events related to property synchronization must not flush changes to avoid wrong execution order of events on server side. For example, an 'has-input-value-changed' event may occur before the actual value of a field has been changed and a flush will trigger listeners with an old value. Fixes #15615
DOM events related to property synchronization must not flush changes to avoid wrong execution order of events on server side. For example, an 'has-input-value-changed' event may occur before the actual value of a field has been changed and a flush will trigger listeners with an old value. Fixes #15615
DOM events related to property synchronization must not flush changes to avoid wrong execution order of events on server side. For example, an 'has-input-value-changed' event may occur before the actual value of a field has been changed and a flush will trigger listeners with an old value. Fixes #15615
DOM events related to property synchronization must not flush changes to avoid wrong execution order of events on server side. For example, an 'has-input-value-changed' event may occur before the actual value of a field has been changed and a flush will trigger listeners with an old value. Fixes #15615
…5722) DOM events related to property synchronization must not flush changes to avoid wrong execution order of events on server side. For example, an 'has-input-value-changed' event may occur before the actual value of a field has been changed and a flush will trigger listeners with an old value. Fixes #15615 Co-authored-by: Marco Collovati <marco@vaadin.com>
…5723) DOM events related to property synchronization must not flush changes to avoid wrong execution order of events on server side. For example, an 'has-input-value-changed' event may occur before the actual value of a field has been changed and a flush will trigger listeners with an old value. Fixes #15615 Co-authored-by: Marco Collovati <marco@vaadin.com>
…5725) DOM events related to property synchronization must not flush changes to avoid wrong execution order of events on server side. For example, an 'has-input-value-changed' event may occur before the actual value of a field has been changed and a flush will trigger listeners with an old value. Fixes #15615 Co-authored-by: Marco Collovati <marco@vaadin.com>
…5724) DOM events related to property synchronization must not flush changes to avoid wrong execution order of events on server side. For example, an 'has-input-value-changed' event may occur before the actual value of a field has been changed and a flush will trigger listeners with an old value. Fixes #15615 Co-authored-by: Marco Collovati <marco@vaadin.com>
This ticket/PR has been released with Vaadin 24.0.0.alpha10 and is also targeting the upcoming stable 24.0.0 version. |
DOM events related to property synchronization must not flush changes
to avoid wrong execution order of events on server side.
For example, an 'has-input-value-changed' event may occur before the
actual value of a field has been changed and a flush will trigger
listeners with an old value.
Fixes #15615