Skip to content

Commit

Permalink
IBX-5053: Handled adding JS listener
Browse files Browse the repository at this point in the history
  • Loading branch information
barw4 committed Feb 27, 2023
1 parent 74d74f4 commit 0bba678
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,9 @@
};
const attachTagEventHandlers = (limitationBtn, tag) => {
const removeTagBtn = tag.querySelector('.ez-tag__remove-btn');

removeTagBtn.addEventListener('click', () => handleTagRemove(limitationBtn, tag), false);
if (removeTagBtn !== null) {
removeTagBtn.addEventListener('click', () => handleTagRemove(limitationBtn, tag), false);
}
};
const closeUDW = () => ReactDOM.unmountComponentAtNode(udwContainer);
const handleUdwConfirm = (limitationBtn, selectedItems) => {
Expand Down

0 comments on commit 0bba678

Please sign in to comment.