godaddy-wordpress / godaddy-wordpress/coblocks

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

Open
#2,592 1 comment 0 reactions 0 assignees View on GitHub
[Priority] Low [Type] Bug
Dominant language
JavaScript
Stars
794
Forks
142
PR merge metrics
No merged PRs in 30d

Description

### 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](https://wordpress.org/support/topic/bug-carousel-image-selection-automatically-disappears/).

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

### To reproduce:

- Open the Gutenberg editor with coblocks installed (e.g. from the "Live preview" button here: https://wordpress.org/plugins/coblocks/)
- Insert a "carousel" block
- Use "full scroll" variation (although others seem to have the same problem)
- Upload a few pictures
- Select one picture

### 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:

- [x] This bug happens with no other plugins activated
- [x] This bug happens with a default WordPress theme active
- [~] ~~This bug happens **without** the Gutenberg plugin active~~
- [x] I can reproduce this bug consistently using the steps above

### WordPress version: 6.4

### Gutenberg version: latest

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.