godaddy-wordpress / coblocks

A suite of professional page building content blocks for the WordPress Gutenberg block editor.
https://wordpress.org/plugins/coblocks/
GNU General Public License v2.0
741 stars 148 forks source link

ISBAT Bug: Carousel image elements lose "selected" state automatically over time #2592

Open ErikBrendel opened 6 months ago

ErikBrendel commented 6 months ago

Describe the bug:

When selecting an image from a coblocks carousel, the selection (visible via the "replace" and "x" buttons as well as the caption placeholder) gets cleared automatically after some time. For some block instances, this is almost instantaneous, while for others it takes a lot longer. See also the WP support ticket.

Due to this bug, we are not able to modify captions or replace / delete images from a carousel block.

To reproduce:

Expected behavior:

This picture should stay selected indefinitely. Instead, it automatically de-selects after some time.

Screenshots:

https://github.com/godaddy-wordpress/coblocks/assets/11018565/04217736-8017-4c5f-97e7-9f63e1485c1c

Isolating the problem:

WordPress version: 6.4

Gutenberg version: latest

ErikBrendel commented 6 months ago

Update: It seems like the "autoplay" feature is related to this. With a freshly inserted carousel, enabling "autoplay" starts the bug, and disabling autoplay again stops the problem from occurring.

On the other hand, disabling autoplay does not always suppress the bug, only sometimes