Empty media element preview

Created on 26 April 2021, over 3 years ago
Updated 12 October 2023, about 1 year ago

Problem/Motivation

Editing media library form field on custom form leads to "No media item selected" element state after new image upload or selection of existing one. Image appears after form submit.

Steps to reproduce

1) Delete existing image in the Vertical banner settings
2) Click Add media and Insert the new one - "No media item selected" is displayed
3) Click form's submit button - Image appeared after form submit.

Proposed resolution

Change triggering event in MediaLibraryFormElementOpener.php from 'mousedown' to 'click'

🐛 Bug report
Status

Closed: cannot reproduce

Version

2.0

Component

Code

Created by

🇧🇾Belarus aylis

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