If you wish to disable a button during an htmx request, you can use this snippet:

Example: Disable button until request finishes
<button
    class="button is-primary"
    hx-get="/example"
    _="on click toggle @disabled until htmx:afterOnLoad">
    Do It
</button>