diff options
author | Teemu Suo-Anttila <teemusa@vaadin.com> | 2015-09-21 13:57:10 +0300 |
---|---|---|
committer | Teemu Suo-Anttila <teemusa@vaadin.com> | 2015-09-21 13:57:10 +0300 |
commit | ca797d3b92b02c6b03c950aef9526222c2f96dbc (patch) | |
tree | a978a391d84d17a01093394a9e90a2fa93154873 | |
parent | 1695c1a6bd98328ce397e7ed63b9cb770ecb32eb (diff) | |
download | vaadin-framework-ca797d3b92b02c6b03c950aef9526222c2f96dbc.tar.gz vaadin-framework-ca797d3b92b02c6b03c950aef9526222c2f96dbc.zip |
Prevent moving editor while requests are pending (#18959)
Change-Id: I5551ac7c8d602c7e28cf4ce99d5e7ca69bc925ff
-rw-r--r-- | client/src/com/vaadin/client/widgets/Grid.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/client/src/com/vaadin/client/widgets/Grid.java b/client/src/com/vaadin/client/widgets/Grid.java index 6457200dd2..f7bbcf8872 100644 --- a/client/src/com/vaadin/client/widgets/Grid.java +++ b/client/src/com/vaadin/client/widgets/Grid.java @@ -1488,6 +1488,13 @@ public class Grid<T> extends ResizeComposite implements throw new IllegalStateException( "Cannot edit row: editor is not enabled"); } + + if (isWorkPending()) { + // Request pending a response, don't move try to start another + // request. + return; + } + if (state != State.INACTIVE && this.rowIndex != rowIndex) { if (isBuffered()) { throw new IllegalStateException( |