diff --git a/nnotepad/js/index.js b/nnotepad/js/index.js index dbc7c77e..25ae06de 100644 --- a/nnotepad/js/index.js +++ b/nnotepad/js/index.js @@ -74,6 +74,7 @@ document.addEventListener('DOMContentLoaded', async (e) => { ); $$('dialog').forEach((dialog) => { dialog.addEventListener('click', (e) => { + if (e.target !== dialog) return; const rect = e.target.getBoundingClientRect(); if ( e.clientY < rect.top ||