diff --git a/simulator/src/app.ts b/simulator/src/app.ts index 1b1b0c9..790f290 100644 --- a/simulator/src/app.ts +++ b/simulator/src/app.ts @@ -14,7 +14,7 @@ document.addEventListener('DOMContentLoaded', function() { }); }); - document.querySelectorAll('.modal-close').forEach(elt => { + document.querySelectorAll('.modal-close, .modal-card-head .delete').forEach(elt => { elt.addEventListener('click', e => { closest(elt, e => e.classList.contains('modal')).classList.toggle('is-active', false); }); diff --git a/simulator/www/simulator.html b/simulator/www/simulator.html index e92c00e..6044559 100644 --- a/simulator/www/simulator.html +++ b/simulator/www/simulator.html @@ -119,12 +119,15 @@