]> source.dussan.org Git - vaadin-framework.git/commit
Fix validation in non-buffered Grid editor (#12281)
authorTarek Oraby <42799254+tarekoraby@users.noreply.github.com>
Wed, 28 Apr 2021 14:47:32 +0000 (17:47 +0300)
committerGitHub <noreply@github.com>
Wed, 28 Apr 2021 14:47:32 +0000 (17:47 +0300)
commit8c11cc6c9210e41b1e9981a04e56dd59d462da91
tree9bcbfcf705f3217621144e2b951814401617139f
parent83ee08eae1a9997298713a6302dc929cc98dedfc
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
client/src/main/java/com/vaadin/client/connectors/grid/EditorConnector.java
client/src/main/java/com/vaadin/client/widget/grid/DefaultEditorEventHandler.java
client/src/main/java/com/vaadin/client/widget/grid/EditorHandler.java
client/src/main/java/com/vaadin/client/widgets/Grid.java
server/src/main/java/com/vaadin/ui/components/grid/EditorImpl.java
shared/src/main/java/com/vaadin/shared/ui/grid/editor/EditorClientRpc.java
shared/src/main/java/com/vaadin/shared/ui/grid/editor/EditorServerRpc.java
uitest/src/main/java/com/vaadin/tests/components/grid/GridEditorNonBuffered.java [new file with mode: 0644]
uitest/src/test/java/com/vaadin/tests/components/grid/GridEditorNonBufferedTest.java [new file with mode: 0644]