-
Notifications
You must be signed in to change notification settings - Fork 614
Open
Labels
Description
To Reproduce
Step by step instructions to reproduce the behavior:
- Modify an image widget.
- Click on Browse Images.
- Select an image from page 2 or later in the image manager modal.
- Save the widget.
- Reopen the Modify Image Widget.
- Click Browse Images again.
- Click on Edit in the preview of the previously selected image. (Notice that nothing happens.)
- If you manually scroll down to page 2 (or the page where the image was originally selected) and then click Edit, it will work correctly.
Expected behavior
When clicking the "Edit" button on an image, the edit modal should open, regardless of whether the image is in the currently loaded set.
Describe the bug
When clicking the "Edit" button on an image that is not currently in the loaded set (e.g., after scrolling down), nothing happens. The edit functionality only works if the image is still visible in the current set.
Details
Version of Node.js:
v18.18.2
Server Operating System:
Linux/WSL2
Additional context:
The issue occurs in the image manager modal, and seems to be connected to how images are loaded dynamically with infinite scroll.