Disable source select when media selection is full

Created on 13 December 2024, 8 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

  • Issue created by @japerry
  • πŸ‡ΊπŸ‡ΈUnited States japerry KVUO

    The feature has been removed from 1.1. I added back the feature as an MR in this issue and marked NW to be worked on in the future.

  • Status changed to Needs work 5 months ago
  • First commit to issue fork.
  • Pipeline finished with Success
    5 months ago
    Total: 2011s
    #452442
  • Pipeline finished with Success
    4 months ago
    #489052
  • Pipeline finished with Success
    about 1 month ago
    Total: 2214s
    #556078
Production build 0.71.5 2024