Skip to content

Commit

Permalink
Modal Ul Error
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandrTarabanko committed May 19, 2023
1 parent ac97a2c commit f64144b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/about-book-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ bookList.addEventListener('click', onIdClick); // Panov
categorieList.addEventListener('click', onIdClick); // Perevertnyk

function onIdClick(e) {
if (e.target.nodeName === 'BUTTON') return;
if (e.target.nodeName === 'BUTTON' || e.target.nodeName === 'UL') return;
const id = e.target.closest('li').id;
openModalId();
createModal(id);
Expand Down

0 comments on commit f64144b

Please sign in to comment.