Logged in as an admin with modify privileges or as a custom editor role without modify privileges, when pasting into an innerblocks within a component it adds the content to every instance even though we are not in modify mode.
@Louis this is an urgent one for us as we have clients editing the site and it is supposed to be going live tomorrow morning.
Step-by-step reproduction instructions:
Open the Post Editor/Site Editor
Create a component
Add a nested component with an innerblocks
Attempt to paste into the innerblocks when not in modify mode
Add another instance of the component to the same page or a different page
Note that the content you pasted is in all instances (not just the one you pasted it into)
I can confirm the bug.
When an Inner Blocks is nested within a Component which is itself nested within another Component, you should not be able to add/remove blocks to said Inner Blocks without first modifying its parent Component.
The fact that you are seeing the content pasted in all instances is perfectly normal, since you say that the Component that contains the Inner Blocks is itself contained within a Component. Modifying the contents of the Inner Blocks will be replicated throughout every instance of the main parent Component.
I appreciate the urgency of the matter, but we’re not going to be able to push out a specific fix for this in the coming days unfortunately. I suggest informing your users about the current situation.
Apologies for the inconvenience.