Disable source select when media selection is full

Created on 13 December 2024, 4 months ago

Problem/Motivation

In Drupal 11.2 and 10.4, the 'Select Media Source' field disables itself opposite to what it should be. This error is shown by a failing test.

Because unchecking a media item could force you to reload the image selection, we've removed the feature with 1.1.0
This issue is a placeholder to bring back that feature in a future release of Acquia DAM.

Steps to reproduce

With 1.1.0-rc1 (on Drupal 11.2 or 10.4):
Edit a piece of content with the media library widget enabled for ckeditor
Open up the media library from ckeditor
Choose any media item.
You'll notice the other items are greyed out, but the 'Select Media Source' dropdown isn't.
Unselect the media item you checked.
You'll notice the 'Select Media Source' dropdown now is greyed out.

Proposed resolution

Fix the JS to work with both newer versions of Drupal and legacy versions as well.

✨ Feature request
Status

Active

Version

1.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States japerry KVUO

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