Delay dialog close to allow any unfocus events to finish (#1791)

This commit is contained in:
Tim Wilkinson 2024-12-29 14:10:45 -08:00 committed by GitHub
parent 2b051594d5
commit 7407b18fe1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -37,5 +37,5 @@
{% if (inner !== "nocancel" && auth.isAdmin) { %}
<button id="dialog-cancel" hx-delete="{{request.env.REQUEST_URI}}" hx-target="#changes" onclick="setTimeout(_ => document.getElementById('ctrl-modal').close(), 10)">Cancel</button>
{% } %}
<button id="dialog-done" onclick="setTimeout(_ => document.getElementById('ctrl-modal').close(), 10)">Done</button>
<button id="dialog-done" onclick="setTimeout(_ => document.getElementById('ctrl-modal').close(), 100)">Done</button>
</div>