Skip to content

Commit

Permalink
Implements correct selection of fn close buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrt-yeah committed Aug 13, 2021
1 parent 1daf4f8 commit 2235f57
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion static/assets/js/uwe-uwe.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ UWE_UWE.FOOTNOTES = (() => {

displayFootnote( e.target.getAttribute("href").slice(1) );
});
}

const fnCloseBtn = fnRef.querySelector(config.fnCloseBtnSelector);
for (const fn of cache.fns) {
const fnCloseBtn = fn.querySelector(config.fnCloseBtnSelector);

if (fnCloseBtn === null) {
continue;
Expand Down

0 comments on commit 2235f57

Please sign in to comment.