Automattic / wp-calypso

The JavaScript and API powered WordPress.com
https://developer.wordpress.com
GNU General Public License v2.0
12.42k stars 1.99k forks source link

Accordion block: Selecting nested accordion block bounced/closed #55054

Open edwinho89 opened 3 years ago

edwinho89 commented 3 years ago

Steps to reproduce the behavior

  1. Create a new Accordion block on a post or page.
  2. Within an Accordion Item content, insert another Accordion block (becomes nested accordion blocks)
  3. Add title on the new child Accordion Item.
  4. Click to insert new contents within child Accordion Item.

What I expected to happen

Contents can be added within nested accordion item.

What actually happened

The nested accordion item was bounced or closed, although the Document Outline shows we've actually selected on the contents there.

Workaround

Create a whole new Accordion block with completed accordion items, and copy, paste inside (gif: https://d.pr/i/RqlL25 )

Does this happen on simple or atomic sites or both?

Reproducibility (Consistent, Intermittent) Leave empty for consistent.

Screenshot / Video: If applicable, add screenshots to help explain your problem.

Gif available in https://d.pr/i/8vGd7B

Reported in 30250985-hc

synora commented 3 years ago

Triaged. Can replicate.

edwinho89 commented 3 years ago

31447198-hc

filipanoscampos commented 2 years ago

Another case here: 5260595-zd-woothemes in this case, the issue is with a Gallery Block.

All works well with Masonry, Collage, etc. But the solution to create the Gallery outside the accordion and paste it inside works as well.