diff options
author | Tatu Lund <tatu@vaadin.com> | 2021-10-27 13:18:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-27 13:18:46 +0300 |
commit | 51d403f07d33add4332ad97823218a1040422ac8 (patch) | |
tree | 62561e0ea42e3e2b7afdd6030f29fa49ef9f1e88 /server/src/main | |
parent | c425e1baac2df7e596836e2bf20534b516f2579f (diff) | |
download | vaadin-framework-51d403f07d33add4332ad97823218a1040422ac8.tar.gz vaadin-framework-51d403f07d33add4332ad97823218a1040422ac8.zip |
fix: Ensure that side effects of readBean does not set hasChanges true (#12455)
Diffstat (limited to 'server/src/main')
-rw-r--r-- | server/src/main/java/com/vaadin/data/Binder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/main/java/com/vaadin/data/Binder.java b/server/src/main/java/com/vaadin/data/Binder.java index 110e260b0c..e969a032f7 100644 --- a/server/src/main/java/com/vaadin/data/Binder.java +++ b/server/src/main/java/com/vaadin/data/Binder.java @@ -1891,7 +1891,6 @@ public class Binder<BEAN> implements Serializable { if (bean == null) { clearFields(); } else { - changedBindings.clear(); getBindings().forEach(binding -> { // Some bindings may have been removed from binder // during readBean. We should skip those bindings to @@ -1902,6 +1901,7 @@ public class Binder<BEAN> implements Serializable { binding.initFieldValue(bean, false); } }); + changedBindings.clear(); getValidationStatusHandler().statusChange( BinderValidationStatus.createUnresolvedStatus(this)); fireStatusChangeEvent(false); |