aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/main
diff options
context:
space:
mode:
authorTarek Oraby <42799254+tarekoraby@users.noreply.github.com>2021-04-28 17:47:32 +0300
committerGitHub <noreply@github.com>2021-04-28 17:47:32 +0300
commit8c11cc6c9210e41b1e9981a04e56dd59d462da91 (patch)
tree9bcbfcf705f3217621144e2b951814401617139f /server/src/main
parent83ee08eae1a9997298713a6302dc929cc98dedfc (diff)
downloadvaadin-framework-8c11cc6c9210e41b1e9981a04e56dd59d462da91.tar.gz
vaadin-framework-8c11cc6c9210e41b1e9981a04e56dd59d462da91.zip
Fix validation in non-buffered Grid editor (#12281)
Handle possible race condition by disabling the editor's widget while awaiting validation from the server. Fixes #12270
Diffstat (limited to 'server/src/main')
-rw-r--r--server/src/main/java/com/vaadin/ui/components/grid/EditorImpl.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/src/main/java/com/vaadin/ui/components/grid/EditorImpl.java b/server/src/main/java/com/vaadin/ui/components/grid/EditorImpl.java
index f7943c8f9c..32f3753ac7 100644
--- a/server/src/main/java/com/vaadin/ui/components/grid/EditorImpl.java
+++ b/server/src/main/java/com/vaadin/ui/components/grid/EditorImpl.java
@@ -151,6 +151,11 @@ public class EditorImpl<T> extends AbstractGridExtension<T>
rpc.confirmBind(true);
doEdit(getData(key));
}
+
+ @Override
+ public void checkValidity() {
+ rpc.confirmValidity(getBinder().validate().isOk());
+ }
});
setBinder(Binder.withPropertySet(propertySet));