Opened 5 years ago
Last modified 5 years ago
#48361 assigned defect (bug)
Select Files on iOS doesn't trigger on modal if start on Upload Files tab and switch to Media Library tab
Reported by: | garrett-eclipse | Owned by: | adamsilverstein |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | |
Component: | Media | Keywords: | needs-patch needs-testing |
Focuses: | ui, javascript, administration | Cc: |
Description
Hello,
I came across an odd issues on a client site recently using ACF and the Gallery field so I did a fresh install and found the issue resides in core as well.
In short the 'Select Files' button doesn't trigger the uploader if you trigger the media modal starting on 'Upload Files' and then switching to 'Media Library' when there's no files present.
To reproduce use an iOS device (iPad/iPhone);
- Install a clean WordPress
- Create a new post.
- Add a Gallery block
- Click the 'Media Library' button.
- If your Media Modal opens with 'Media Library' tab selected then switch to 'Upload Files' and reload the screen.
- Your Media Modal should open on 'Upload Files' now.
- Switch to the Media Library tab now.
- Click the 'Select Files' button that appears below the 'No items found' text.
- Note the uploader isn't triggered.
This seems to only occur when there's no items in your media library and you are using the Media Modal but your settings have it open on 'Upload Files' first and then you switch to 'Media Library'.
I initially came across this with an ACF Gallery field, but in my clean install it was the Gallery block that I was able to reproduce the issue with.
All the best,
Cheers
Attachments (1)
Change History (5)
#1
@
5 years ago
Hi @garrett-eclipse thanks for the detailed bug report. I have some questions:
- Can you confirm you are testing with WordPress version 5.2? or trunk?
- Are you testing in an emulator, chrome debugger, or an actual device?
- Since you reported this as iOS specific I am assuming this doesn't happen on desktop, is that correct?
#2
@
5 years ago
Hi @adamsilverstein
I was testing with WP 5.2.4 / PHP 7.2.9 but just spun up an instance of trunk to confirm the issue is still present, and it is.
The issue was originally flagged to me on a physical iPad and then again on iPhone with our dev site, for reproducing on trunk and latest though I used the emulator for both iPad and iPhone. I haven't tried in chrome debugger and in safari debugger I can't spot anything odd it's just like the trigger wasn't attached.
And yes that's correct I've tried to reproduce in Chrome/Firefox/Safari with no luck.
Appreciate you looking into this.
Illustrating the issue, starting on 'Upload Files' I go to 'Media Library' and click 'Select Files' with no result, then I switch back to 'Upload Files' and come back to 'Media Library' to find clicking 'Select Files' now triggers the uploader.