aboutsummaryrefslogtreecommitdiffstats
path: root/client/src
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <tsuoanttila@users.noreply.github.com>2018-07-10 10:20:37 +0300
committerIlia Motornyi <elmot@vaadin.com>2018-07-10 10:20:37 +0300
commite6807bf8dc701263fa062a80d09708b54f6dba49 (patch)
tree8b9a43c09e1ce40416109a9e92206fcb5709d4af /client/src
parent57f67c3a46ad2e92edd6c3c04c57bb5267650b02 (diff)
downloadvaadin-framework-e6807bf8dc701263fa062a80d09708b54f6dba49.tar.gz
vaadin-framework-e6807bf8dc701263fa062a80d09708b54f6dba49.zip
Enable selection checkboxes with unbuffered editor (#11032)
Fixes #11028
Diffstat (limited to 'client/src')
-rw-r--r--client/src/main/java/com/vaadin/client/widget/grid/selection/MultiSelectionRenderer.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/client/src/main/java/com/vaadin/client/widget/grid/selection/MultiSelectionRenderer.java b/client/src/main/java/com/vaadin/client/widget/grid/selection/MultiSelectionRenderer.java
index 8365083f7e..4462482fb1 100644
--- a/client/src/main/java/com/vaadin/client/widget/grid/selection/MultiSelectionRenderer.java
+++ b/client/src/main/java/com/vaadin/client/widget/grid/selection/MultiSelectionRenderer.java
@@ -644,7 +644,9 @@ public class MultiSelectionRenderer<T>
checkBox.setValue(data, false);
// this should be a temp fix.
checkBox.setText("Selects row number " + getDOMRowIndex(cell) + ".");
- checkBox.setEnabled(grid.isEnabled() && !grid.isEditorActive());
+ boolean editorOpen = grid.isEditorActive();
+ boolean editorBuffered = grid.isEditorBuffered();
+ checkBox.setEnabled(grid.isEnabled() && !(editorOpen && editorBuffered));
}
private int getDOMRowIndex(RendererCellReference cell) {