WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.5k stars 4.19k forks source link

The More block duplicates when used as a nested block (e.g. in Group or Columns) #22718

Open dashkevych opened 4 years ago

dashkevych commented 4 years ago

Describe the bug If we have the Group block inside another Group block and there is the More block inside the inner Group block then the more link along with the content is duplicated multiple times.

To reproduce Steps to reproduce the behavior:

  1. Add Paragraph;
  2. Add the More block;
  3. Add Paragraph;
  4. Group the content;
  5. Group it again;

Screenshots

Back-end

Front-end

Video I've created a video to show how to reproduce the issue in the TwentyTwenty theme: https://cloudup.com/cXeXKE0WYYW

Editor version (please complete the following information):

getsource commented 4 years ago

Thanks so much for the report! Sorry it's taken a while for a response.

This was tested in triage today, and folks were able to reproduce.

A quick note to anyone taking a look later that grouping a second time using the code editor is necessary for reproduction. For details, take a look at the video linked above.

talldan commented 3 years ago

26839 was closed as a duplicate, there it was noted the same happens for the Columns block, so it's like an issue any time the More block is used as a nested block.

jerrysarcastic commented 3 years ago

Adding here that this came up recently with a WordPress.com site owner and I was able to replicate the issue as well. The use case here is more familiar in that the site owner added the more block within a column (in the process of using blocks to create a novel post layout) and on the post page the excerpt is repeated twice.

I recorded a video of the issue here on my test site: https://d.pr/v/YAH2m4

The issue is visible in all themes I tested (Twentytwentyone, Twentytwenty, Twentysixteen, Hever, Seedlet) so does not seems themes specific. I'm surprised it has not come up more often as site owners experiment with blocks to create more novel layouts TBH.

youknowriad commented 2 years ago

Is this still happening, I don't seem to reproduce it anymore personally.

zdenys commented 1 year ago

It is happening, yes. I personally was able to observe this. When a Read More block is nested within a Group Block (or multiple Group Blocks) it will:

SamReciter commented 1 year ago

Still happening.