-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Reusable block selection issues #19436
Comments
These are separate from the focus issues in #19373, but likely both need to be accommodated in a resolution. |
I can confirm this in WordPress 5.3 and the latest version of the Gutenberg plugin. Also just to confirm it's not necessarily specific to reusable blocks, but I think specific to nested BlockList components. (I'm working on a proof of concept component which allows you to store a set of blocks to post meta or another store, which is how I discovered this.) There's also some funky behavior where the inner block borders can actually fully disappear, but I haven't been able to determine if it's specifically related to this issue or not. It's similar but here's a screenshot of what I've seen: |
This continues to be an issue in recent plugin versions. It seems like the nested provider is maintaining its own state around block selection, which means that events in the upper container don't impact the lower container (and vice versa). As far as I can tell, this issue was observed on the PR which implemented the nested editor (#14367) but hasn't really been addressed since. |
My guess is that it's because the selection state is contained in a different registry. Fixing this will likely also fix #18560. |
It's worth noting that the misplaced controls still act upon their original block; the controls simply appear in the wrong spot. |
Describe the bug
I'm not sure if any of these issues have been reported before.
Tab
from a block inside a reusable block focusses the next block outside of the reusable block instead of the inspector. This seems to be caused by havingWritingFlow
inside reusable blocks. I'm not sure why this is needed.Cmd+A
and then selecting a block inside a reusable block.The text was updated successfully, but these errors were encountered: