Skip to content

Commit

Permalink
after qa
Browse files Browse the repository at this point in the history
  • Loading branch information
dew326 committed Oct 19, 2023
1 parent fd32809 commit 95fcb16
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@
initColumns(settingsNode);
};
const checkColumn = (event) => {
const settingsNode = event.target.closest(SELECTOR_SETTINGS_COLUMNS);
const settingsNode = event.currentTarget.closest(SELECTOR_SETTINGS_COLUMNS);
const isFromJS = event.detail?.isFromJS ?? false;

if (isFromJS) {
return;
}

updateDisabledState(settingsNode);
};
Expand All @@ -58,6 +63,8 @@
checkbox.removeEventListener('change', checkColumn, false);
checkbox.addEventListener('change', checkColumn, false);
});

parentNode.querySelector('.ibexa-table').dispatchEvent(new CustomEvent('ibexa-refresh-main-table-checkbox'));
};
const initComponent = (container) => {
container.querySelector(SELECTOR_ADD_COLUMN).addEventListener('click', addItem, false);
Expand Down

0 comments on commit 95fcb16

Please sign in to comment.