Browse Source

Fix Editor trying to detach save and cancel buttons when unbuffered

This is a fix to an regression in some grid patch.

Change-Id: Ibd35d7a06f0e0b15e854bf036ccfb7f462e2d37f
tags/7.7.0.alpha1
Teemu Suo-Anttila 8 years ago
parent
commit
cb5500f9a8
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      client/src/com/vaadin/client/widgets/Grid.java

+ 4
- 2
client/src/com/vaadin/client/widgets/Grid.java View File

@@ -2015,8 +2015,10 @@ public class Grid<T> extends ResizeComposite implements
}
columnToWidget.clear();

grid.detachWidget(saveButton);
grid.detachWidget(cancelButton);
if (isBuffered()) {
grid.detachWidget(saveButton);
grid.detachWidget(cancelButton);
}

editorOverlay.removeAllChildren();
cellWrapper.removeAllChildren();

Loading…
Cancel
Save