Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
After selecting media for a field using the media browser and updating the 'fid' field, no javascript 'change' event is triggered.
At first glance, I thought this was similar to #979844: Add event handler when media is selected for a field so that other modules might intervene, but I think that ticket is about creating a custom event in the media browser, whereas this one is about triggering a standard event on a content editing form.
Possible patch attached.
Comment | File | Size | Author |
---|---|---|---|
media-trigger_js_event_after_updating_form.patch | 806 bytes | becw | |
Comments
Comment #1
Dave ReidComment #2
Dave ReidI'm going to merge this in with #1213252: Allow media file's fields to be edited in a modal or after upload in the media widget since it makes sense to do so there.