summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <teemusa@vaadin.com>2015-09-21 13:57:10 +0300
committerTeemu Suo-Anttila <teemusa@vaadin.com>2015-09-21 13:57:10 +0300
commitca797d3b92b02c6b03c950aef9526222c2f96dbc (patch)
treea978a391d84d17a01093394a9e90a2fa93154873
parent1695c1a6bd98328ce397e7ed63b9cb770ecb32eb (diff)
downloadvaadin-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.java7
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(