Site Editor: Fix browser console error in Library page#51756
Site Editor: Fix browser console error in Library page#51756
Conversation
|
Size Change: -10 B (0%) Total Size: 1.42 MB
ℹ️ View Unchanged
|
|
Flaky tests detected in fa4de00. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5335803270
|
aaronrobertshaw
left a comment
There was a problem hiding this comment.
Thank you for the fix @t-hamano 🚀
There's also #51762 by @ciampo that addresses this issue along with the tooltips on the back button.
I don't have strong opinions regarding the slightly different approaches.
There do appear to be some related e2e failures here, so perhaps it's easier to go with #51762?
|
Thanks for the review, @aaronrobertshaw!
Yes, I have no problem closing this PR and proceeding with #51762 👍 |
|
Thank you @t-hamano ! Going to close this PR as agreed |
What?
This PR fixes a browser warning error that is output when the library page is opened in the site editor.
Why?
This is because if the
SIdebarButtoncomponent is passed to the icon prop of theDropdownMenucomponent, the button element will be nested.How?
Use
togglePropsprop.Testing Instructions
Verify that the browser console does not output an error when the Library page is opened in the Site Editor.