summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <teemusa@vaadin.com>2016-02-16 08:33:59 +0200
committerTeemu Suo-Anttila <teemusa@vaadin.com>2016-02-16 08:33:59 +0200
commitcb5500f9a839f1f8c235d4581b663303da3f26f6 (patch)
tree6b453981b81d692658311e4e6ea3e6e12f37e702 /client
parent493e5d7f460cf6c41b858ac6e0abafe177f4a71c (diff)
downloadvaadin-framework-cb5500f9a839f1f8c235d4581b663303da3f26f6.tar.gz
vaadin-framework-cb5500f9a839f1f8c235d4581b663303da3f26f6.zip
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
Diffstat (limited to 'client')
-rw-r--r--client/src/com/vaadin/client/widgets/Grid.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/client/src/com/vaadin/client/widgets/Grid.java b/client/src/com/vaadin/client/widgets/Grid.java
index 252bcfed3c..c6c661cab2 100644
--- a/client/src/com/vaadin/client/widgets/Grid.java
+++ b/client/src/com/vaadin/client/widgets/Grid.java
@@ -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();