diff options
author | Teemu Suo-Anttila <tsuoanttila@users.noreply.github.com> | 2018-07-10 10:20:37 +0300 |
---|---|---|
committer | Teemu Suo-Anttila <tsuoanttila@users.noreply.github.com> | 2018-07-10 12:50:43 +0300 |
commit | d326bb60556cd7cf61b87a72c7f48dc33b6eae9f (patch) | |
tree | 16420c0479873701f5c3934923da5c49fc462dea | |
parent | 5ea08f95825220ff06ab0dda6444a3f42ebdd28b (diff) | |
download | vaadin-framework-d326bb60556cd7cf61b87a72c7f48dc33b6eae9f.tar.gz vaadin-framework-d326bb60556cd7cf61b87a72c7f48dc33b6eae9f.zip |
Enable selection checkboxes with unbuffered editor (#11032)
Fixes #11028
-rw-r--r-- | client/src/main/java/com/vaadin/client/widget/grid/selection/MultiSelectionRenderer.java | 4 |
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) { |