_hyperscript icon indicating copy to clipboard operation
_hyperscript copied to clipboard

Disable every button during an htmx request cookbook shows error in console

Open terjesb opened this issue 2 years ago • 0 comments

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.

terjesb avatar Jun 07 '22 06:06 terjesb