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
Check if updating to the latest Preact version resolve the issue
Describe the bug
Hello!
I found an issue with resetting (setting to undefined) of the tabIndex attribute.
If I try to set undefined as a value for tabindex Preact sets its value to "0" instead of removing the attribute.
Describe the bug
Hello!
I found an issue with resetting (setting to
undefined
) of thetabIndex
attribute.If I try to set
undefined
as a value fortabindex
Preact sets its value to "0" instead of removing the attribute.To Reproduce
Steps to reproduce the behavior:
tabindex
attribute on the "Test button" nodetabindex
attribute on the "Test button" node againExpected behavior
Attribute
tabindex
should be removed from the DOM node.As a workaround, I'm using a ref to a DOM node and remove the attribute in a hook... But it looks just wrong :)
P.S. Even though it's a bug report, I would like to thank all maintainers for the great library you are building!
The text was updated successfully, but these errors were encountered: