aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/main
diff options
context:
space:
mode:
authorTatu Lund <tatu@vaadin.com>2021-10-27 13:18:46 +0300
committerGitHub <noreply@github.com>2021-10-27 13:18:46 +0300
commit51d403f07d33add4332ad97823218a1040422ac8 (patch)
tree62561e0ea42e3e2b7afdd6030f29fa49ef9f1e88 /server/src/main
parentc425e1baac2df7e596836e2bf20534b516f2579f (diff)
downloadvaadin-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.java2
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);