Skip to content

Commit

Permalink
fix: accordion click handler should only target buttons (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdreesen authored Oct 2, 2024
1 parent 1dd758e commit 2a4fb50
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions public/js/areabrick-overview-unpublished-toggle.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
document.addEventListener('DOMContentLoaded', function () {
document.addEventListener('click', event => {
if (event.target.tagName !== 'BUTTON') {
return;
}

const el = event.target.closest('#neusta_areabrick_config .accordion');

if (el) {
Expand Down

0 comments on commit 2a4fb50

Please sign in to comment.