The Filter by Label search box isn't working for the Image Select element

Created on 10 March 2025, 25 days ago

Problem/Motivation

The search text filter isn't working when the "Include filter by label" option is enabled for the Image Select element; it does not filter images.

Steps to reproduce

1. Create an Image Select element.
2. Check the "Include filter by label" checkbox in the element settings.
3. Try to use the search text filter.

Proposed resolution

We have to edit the following file: .
js/webform_image_select.element.js: {} should be replaced with js/webform_image_select.element.js: {weight: -1}.
This way, we will include after to ensure that the $('.js-images-filter .thumbnails') element is available before attempts to access it.

πŸ› Bug report
Status

Active

Version

6.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States furamag

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024