The previous wiring attached click listeners on DOMContentLoaded, so any [data-modal-open] / [data-modal-close] / dialog.modal element that came in via a later HTMX partial swap silently lost its behaviour. The server-detail Actions partial reloads its reset/delete triggers on every state change, so reset was unclickable after the first state change post-load. Switch to a single delegated click handler on document. Same logic, but matches via Element.closest() so it works regardless of when an element was added to the DOM. No re-bind needed after HTMX swaps. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| blueprint-overlay-picker.js | ||
| csrf.js | ||
| file-tree.js | ||
| modal.js | ||
| sse.js | ||