lazy-blocks icon indicating copy to clipboard operation
lazy-blocks copied to clipboard

Gutenberg edits all blocks at the same time

Open fly-oinotna opened this issue 4 years ago • 6 comments

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 avatar Oct 25 '21 08:10 fly-oinotna

Hey.

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

nk-o avatar Oct 29 '21 12:10 nk-o

Hi! Thanks for answering!

No, we're not using that option.

fly-oinotna avatar Oct 29 '21 13:10 fly-oinotna

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 avatar Nov 04 '21 18:11 nk-o

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

predaytor avatar Nov 26 '21 19:11 predaytor

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

gmesnard avatar Feb 16 '22 09:02 gmesnard

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

mem-shimoyama-takumi avatar Jul 21 '22 00:07 mem-shimoyama-takumi