-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gallery block: Media library button opens upload modal then causes an empty white modal #34099
Comments
I think this might be a bug with 5.8 rather than then gallery refactor #33769 (comment) |
Oh, thanks Glen, didn't see that one! |
Going to close this as covered by #33769 (comment) |
Sounds good, yes just confirming that I can replicate it on a separate branch with the old gallery block, so not related to the gallery refactor 👍 |
@andrewserong @glendaviesnz you're describing two problems in this issue;
The issue you're linking covers 2nd problem, but not the first one. The upload dialog bug happens with both old core gallery, as well with new refactored gallery. Could you have a look? |
The issue was covered by this comment - #33769 (comment) - but probably worth having this as a separate issue so will leave it open for now |
Thanks Glen 👍 I also updated the title to reflect that this is current bug with old gallery block as well. Will your team handle the fix? |
Doesn't look like anyone else is picking this up in core so we have added it into our current sprint |
Just assigning myself to this one — I'll have a go at investigating, but don't let that stop anyone else from looking, too, of course! |
I have a fix ready for review in #34894. It looks like the regression was introduced in #33632 when an |
Description
Following Gallery block refactor PR testing instructions in: #29882, I noticed the following issue:
In a gallery that contains only a single image, if I click the Media Library button in the gallery block's placeholder, it opens the media library but then immediately also opens the upload modal. If I select an image from my computer, the media library modal renders white. When I close the modal, I can see that the image is uploaded.
What I expected:
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Environment info
Pre-checks
The text was updated successfully, but these errors were encountered: