Skip to content

Commit e141610

Browse files
committed
fix #1106 SelectionPlugin: SelectAllRows-checkbox not working anymore after datatable is detached and reattached
1 parent ea4794f commit e141610

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

domino-ui/src/main/java/org/dominokit/domino/ui/datatable/plugins/selection/SelectionPlugin.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
import org.dominokit.domino.ui.icons.lib.Icons;
4141
import org.dominokit.domino.ui.utils.DominoEvent;
4242
import org.dominokit.domino.ui.utils.HasSelectionListeners;
43-
import org.dominokit.domino.ui.utils.MutationObserverCallback;
4443
import org.dominokit.domino.ui.utils.Selectable;
4544

4645
/**
@@ -250,20 +249,10 @@ private HTMLElement createMultiSelectCell(DataTable<T> dataTable, RowCellInfo<T>
250249
};
251250

252251
checkBox.addClickListener(clickListener);
253-
checkBox.registerOnDetached(
254-
MutationObserverCallback.doOnce(
255-
mutationRecord -> checkBox.removeClickListener(clickListener)));
256252

257253
tableRow.addSelectionListener(selectionListener);
258254
tableRow.addDeselectionListener(deselectionListener);
259255

260-
tableRow.onDetached(
261-
MutationObserverCallback.doOnce(
262-
mutationRecord -> {
263-
tableRow.removeSelectionListener(selectionListener);
264-
tableRow.removeDeselectionListener(deselectionListener);
265-
}));
266-
267256
checkBox.addChangeListener(
268257
(oldValue, checked) -> {
269258
if (selectionCondition.isAllowSelection(dataTable, tableRow)) {

0 commit comments

Comments
 (0)