square-analyst-94375
10/04/2022, 4:06 PMremove me call) then I've noticed that HX-Trigger response headers are aren't triggering my hx-trigger that is watching for the event: (hx-trigger="requestDeleted from:body"). I'm guessing that the event IS triggered on the element, but it is no longer in the DOM so it doesn't bubble up to the body.
Is there a preferred work around or is this an HTMX bug? Maybe some way to wait for the http request returns before removing the modal?square-analyst-94375
10/04/2022, 4:55 PMon click wait for htmx:afterRequest from me then trigger closeModalsquare-analyst-94375
10/04/2022, 4:57 PMme didn't work since that referred to the button. This did:
on click wait for htmx:afterRequest from #deleteRequestForm then trigger closeModal
Nice!mysterious-toddler-20573
10/04/2022, 6:03 PM