Skip to content

Commit

Permalink
IBX-6993: [Fieldtype Matrix] After adding field, "select all checkbox…
Browse files Browse the repository at this point in the history
…" in table does not work
  • Loading branch information
GrabowskiM committed Nov 6, 2023
1 parent 700a7ed commit 17f4c50
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/bundle/Resources/public/js/scripts/admin.table.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
});
};

ibexaTables.forEach((table) => {
const initTableCheckboxesListeners = (table) => {
const tableHasBulkCheckbox = !!table.querySelector(
'.ibexa-table__header-cell-checkbox:not(.ibexa-table__header-cell-checkbox--custom-init)',
);
Expand All @@ -134,6 +134,16 @@
},
false,
);
});
};

ibexaTables.forEach(initTableCheckboxesListeners);
initStickyTables();

doc.body.addEventListener(
'ibexa-init-main-table-checkboxes-listeners',
(event) => {
initTableCheckboxesListeners(event.detail.table);
},
false,
);
})(window, window.document);

0 comments on commit 17f4c50

Please sign in to comment.