Skip to content

Commit

Permalink
IBX-5017: Select all checkbox in Relation List is inconsistent
Browse files Browse the repository at this point in the history
  • Loading branch information
GrabowskiM committed Feb 15, 2023
1 parent 58b070d commit 0c7de1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/bundle/Resources/public/js/scripts/admin.table.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
subCheckboxes.forEach((subCheckbox) => {
if (!subCheckbox.disabled) {
subCheckbox.checked = mainCheckbox.checked;
subCheckbox.dispatchEvent(new CustomEvent('change', { detail: { isFromJS: true } }));
subCheckbox.dispatchEvent(new CustomEvent('change', { bubbles: true, detail: { isFromJS: true } }));
}
});
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
closeUDW();
updateFieldState();
updateAddBtnState();
relationsTable.dispatchEvent(new CustomEvent('ibexa-refresh-main-table-checkbox'));
};
const openUDW = (event) => {
event.preventDefault();
Expand Down

0 comments on commit 0c7de1d

Please sign in to comment.