Kaynağa Gözat

Prevent moving editor while requests are pending (#18959)

Change-Id: I5551ac7c8d602c7e28cf4ce99d5e7ca69bc925ff
tags/7.6.0.alpha6
Teemu Suo-Anttila 8 yıl önce
ebeveyn
işleme
ca797d3b92

+ 7
- 0
client/src/com/vaadin/client/widgets/Grid.java Dosyayı Görüntüle

@@ -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…
İptal
Kaydet