-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Block Library: Fix React does not recognize isSelected prop in ComplementaryAreaToggle. #22967
Conversation
…mentaryAreaToggle.
Size Change: +7.29 kB (0%) Total Size: 1.13 MB
ℹ️ View Unchanged
|
return ( | ||
<ComponentToUse | ||
icon={ selectedIcon && isSelected ? selectedIcon : icon } | ||
isSelected={ isSelected } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should just remove it? Is it useful anywhere?
If I understand properly the components that can be used as as
should follow the same API as buttons.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's better that way. I'll do it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@youknowriad fixed 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Fixes comment from #21430 |
Description
fix error
Warning: React does not recognize the
isSelectedprop on a DOM element.
Types of changes
Bug fix (non-breaking change which fixes an issue)
Checklist: