Procházet zdrojové kódy

Prevent moving editor while requests are pending (#18959)

Change-Id: I5551ac7c8d602c7e28cf4ce99d5e7ca69bc925ff
tags/7.6.0.alpha6
Teemu Suo-Anttila před 8 roky
rodič
revize
ca797d3b92
1 změnil soubory, kde provedl 7 přidání a 0 odebrání
  1. 7
    0
      client/src/com/vaadin/client/widgets/Grid.java

+ 7
- 0
client/src/com/vaadin/client/widgets/Grid.java Zobrazit soubor

@@ -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(

Načítá se…
Zrušit
Uložit