瀏覽代碼

Prevent moving editor while requests are pending (#18959)

Change-Id: I5551ac7c8d602c7e28cf4ce99d5e7ca69bc925ff
tags/7.6.0.alpha6
Teemu Suo-Anttila 8 年之前
父節點
當前提交
ca797d3b92
共有 1 個檔案被更改,包括 7 行新增0 行删除
  1. 7
    0
      client/src/com/vaadin/client/widgets/Grid.java

+ 7
- 0
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(

Loading…
取消
儲存