diff options
author | Tarek Oraby <42799254+tarekoraby@users.noreply.github.com> | 2021-04-28 17:47:32 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-28 17:47:32 +0300 |
commit | 8c11cc6c9210e41b1e9981a04e56dd59d462da91 (patch) | |
tree | 9bcbfcf705f3217621144e2b951814401617139f /server/src/main | |
parent | 83ee08eae1a9997298713a6302dc929cc98dedfc (diff) | |
download | vaadin-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.java | 5 |
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)); |