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
I read that focus was depreciated and replaced by isSelected but could not find detailed info on how to use it. For example I want to show an inline URL input when a RichText component is selected. I thought the following would work:
The prop isSelected is attached to your block as a whole, not a single component, so I do not believe you can use it like that.
I am not sure if there is a standard per component way to do this, but I do remember seeing the HTML block manually manage its own prop isPreview for achieving something similar, you can see the source here.
I read that focus was depreciated and replaced by
isSelected
but could not find detailed info on how to use it. For example I want to show an inline URL input when a RichText component is selected. I thought the following would work:Instead, the inline link shows when the entire block is clicked, not the RichText with class
.button
Is isSelected not intended to be used like this?
The text was updated successfully, but these errors were encountered: