_hyperscript
_hyperscript copied to clipboard
Disable every button during an htmx request cookbook shows error in console
https://hyperscript.org/cookbook/50-disable-btn-during-request-all/ shows an error in the console, expecting either a class reference or attribute expression.
hyperscript errors were found on the following element:
<body _="on every htmx:beforeSend… until htmx:afterOnLoad">
Expected either a class reference or attribute expression
on every htmx:beforeSend in <button:not(.no-disable)/> tell it toggle [disabled='true'] until htmx:afterOnLoad
^^
Changing to [@disabled='true'] removes the error, but it still doesn't disable every button.