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 (#34)
  • Loading branch information
GrabowskiM committed Nov 8, 2023
1 parent 9c8058c commit e5208ff
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,20 @@
const { nodes } = event.detail;

nodes.forEach((container) => {
if (!container.querySelector(SELECTOR_SETTINGS_COLUMNS)) {
const matrixColumnsWidget = container.querySelector(SELECTOR_SETTINGS_COLUMNS);

if (!matrixColumnsWidget) {
return;
}

const table = matrixColumnsWidget.querySelector('.ibexa-table');

doc.body.dispatchEvent(
new CustomEvent('ibexa-init-main-table-checkboxes-listeners', {
detail: { table },
}),
);

initComponent(container);
});
},
Expand Down

0 comments on commit e5208ff

Please sign in to comment.