Setting disabled
to false
on a Button
throws TypeError: null is not an object
#1010
Labels
bug
Something isn't working
Describe the bug
Setting a
button.disabled = false
throws the errorTypeError: null is not an object
when the button is not already disabled.To Reproduce
button.mjs
:node ./button.mjs
Expected behavior
Setting a button disabled attribute to false works as expected, regardless if the attribute is already present or not.
Screenshots
Terminal output:
Device:
Linux 6.4.7-arch1-1 x86_64
happy-dom
version:10.7.0
Additional context
Only an issue when the button is not already disabled e.g., this works without error:
The text was updated successfully, but these errors were encountered: