You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I belive there is multiple errors in this example and does not work, because:
A. Correct expression for attribute is @disabled, not [disabled]
B. Disabled button does not fire on click
C. Button is not disabled in first place!
Another issue arises when using from along with this incorrect square bracket attribute expression (e.g., on click remove [disabled] from #box). It fails to execute with the error that is probably should not happen: Cannot read properties of undefined (reading 'parentElement')
I'm a bit of a noob at hyperscript, so I apologize if I've missed something.
The text was updated successfully, but these errors were encountered:
In the documentation of the
remove
command (https://hyperscript.org/commands/remove/), there is an example:I belive there is multiple errors in this example and does not work, because:
A. Correct expression for attribute is
@disabled
, not[disabled]
B. Disabled button does not fire
on click
C. Button is not disabled in first place!
Another issue arises when using
from
along with this incorrect square bracket attribute expression (e.g.,on click remove [disabled] from #box
). It fails to execute with the error that is probably should not happen:Cannot read properties of undefined (reading 'parentElement')
I'm a bit of a noob at hyperscript, so I apologize if I've missed something.
The text was updated successfully, but these errors were encountered: