Can't apply filter to file entity browser after 10.4.0

Created on 27 March 2025, 4 months ago
Updated 29 March 2025, 3 months ago

Problem

I’m working on a site that is currently on drupal/core 10.3.14, and I’ve had an issue with the "Files listing" tab (“View” widget plugin) of the File Entity Browser in every new Core version since 10.4.0. When I open the entity browser modal and apply a filter with the exposed form after upgrading past 10.4.0, rather than showing the filtered results, the modal resets to the "Upload files" tab. Interestingly, when I open the View associated with the module (files_entity_browser) and apply a filter in the preview, the filter works perfectly.

Since this issue seems to be directly correlated with drupal/core updates, we assume that it appears in locations other than the file entity browser, but we haven’t found any instances of the problem elsewhere on our site.

We’ve narrowed down the issue to the core/assets/vendor/jquery.ui/ui directory. Any help or suggestions would be greatly appreciated.

Steps to reproduce

1. Upgrade to drupal/core 10.4.x or greater

2. Install the File Entity Browser module
3. Manage the form display of an image field in any content type and add the "Entity Browser" widget to it (select "Browser for files (modal)" in the widget settings)
4. Create/edit a node with that image field
5. Open the entity browser in the image field

6. Select the "Files listing" tab

7. Apply a filter (ex. a filename)

What behavior were you expecting?

When the filter is applied, files that meet the filter’s criteria should appear (shown in screenshot-1.png).

What happened instead?

When the filter is applied, the modal resets to the “Upload files” tab (shown in screenshot-2.png).

🐛 Bug report
Status

Active

Version

10.4

Component

javascript

Created by

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024