Skip to content
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

Gutenberg edits all blocks at the same time #224

Open
fly-oinotna opened this issue Oct 25, 2021 · 6 comments
Open

Gutenberg edits all blocks at the same time #224

fly-oinotna opened this issue Oct 25, 2021 · 6 comments
Labels
question Further information is requested

Comments

@fly-oinotna
Copy link

Issue description:

We generate accordions using a simple lazy block loop. Works great until one block per page is used.
If we generate multiple accordion blocks in the same page, all blocks content will be edited at the same time.

Lazy Blocks Version:

2.4.3

WordPress Version:

5.8.1

Any helpful information to reproduce the issue (screenshots, code parts)

Schermata 2021-10-25 alle 10 45 10

@fly-oinotna fly-oinotna changed the title Gutenberg edits all blocks in one Gutenberg edits all blocks at the same time Oct 25, 2021
@nk-o
Copy link
Collaborator

nk-o commented Oct 29, 2021

Hey.

Do you use the Save in Meta option? If yes, this is the reason. https://lazyblocks.com/documentation/blocks-controls/#custom-meta-field

@fly-oinotna
Copy link
Author

Hi! Thanks for answering!

No, we're not using that option.

@nk-o
Copy link
Collaborator

nk-o commented Nov 4, 2021

Unfortunately, I can't reproduce this issue. If you can provide a step-by-step guide on how to create this block (from scratch) and how to insert it in the post to reproduce this bug, I will be able to fix it.

@nk-o nk-o added the question Further information is requested label Nov 4, 2021
@predaytor
Copy link

I think that happens when using field type Classic Editor (WYSIWYG ).

@gmesnard
Copy link

+1, I have the same problem.
Three blocks in a page, when I edit a block, all 3 are modified identically.

@mem-shimoyama-takumi
Copy link

mem-shimoyama-takumi commented Jul 21, 2022

I don't know if this is the same problem, but when there are two or more Classic Editor (WYSIWYG ), pressing Ctrl+A selects the contents of all WYSIWYGs except the one that is selected, and then the contents of all WYSIWYGs are the same.
No paste, just Ctrl+A to force rewrite to the last edited WYSIWYG content
Translated by DeepL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants