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
Hide avatar placeholder on Author block when not in use #1074
Conversation
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.
Any ideas on how to conditionally show when the
core/button
is selected?
Look at how I detected innerBlocks being selected in the Food and Drinks block. Button blocks do have an isSelected
attribute applied (all blocks should) so this should work for you:
https://github.com/godaddy/coblocks/blob/master/src/blocks/food-and-drinks/edit.js#L224-L233
Currently the |
@richtabor Made the suggested change. Now |
@jrtashjian Mind taking another peek at this one? Thanks! |
Closes #1050
An issue here is that the child block
core/button
does not store a prop ofisSelected
. Reading props by using the following:Any ideas on how to conditionally show when the
core/button
is selected?