TL;DR: If the Media browser view's exposed form setting is overridden to "input only," Javascript for selecting media in the browser stops working.

Especially with #1956620: Pager on library tab always reloads page 1. still open, it's not unreasonable to expect the Media browser view to be overridden to use no pager. And with no pager of course it's not unreasonable to expect some users will prefer the exposed form to be "input required" so the library tab doesn't open with every asset displayed at once. However, once the view is overridden to require input on the exposed form, you can no longer select any media.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

biwashingtonial’s picture

Issue summary: View changes
biwashingtonial’s picture

Assigned: biwashingtonial » Unassigned
Status: Active » Needs review
FileSize
813 bytes

I'm not convinced this is the best solution, but it works. The problem definitely relates to when we add media.views.js. The style plugin is too late, because a view requiring input won't get that far until after input is given (which is AJAXian for Media browser). I see no obvious side-effects to loading it in the pre_view stage.

anbarasan.r’s picture

seems this is not working to me.

Chris Matthews’s picture

Status: Needs review » Closed (outdated)

Closing this issue as outdated. However, if you think this issue is still important, please let us know and we will gladly re-open it for review.
sincerely,
- the Drupal Media Team