https://htmx.org logo
About your question, for example in my case, when ...
# 🔥-django-htmx
r
About your question, for example in my case, when I'm deleting an object, I need to manually hide the modal, otherwise the user will be able to click on "DELETE" a second time while the object is actually already delete. It's not awful but is just more work to handle. With hyperscript :
Copy code
html
        <button
          ...
          _="on refreshTableEvent remove .modal-open from #{@data-modal-content}"
          data-modal-content="modal-delete-{{record.pk}}-content"
        >
          Delete
        </button>