In my content type I have several text/textarea and a few media (image) fields. When I select (or upload a new) image and the media browser dialog closes, if you then click (quickly!) inside an input field before the image-field is done 'processing (showing thumbnail, switching from select to remove button, etc), the input does not receive proper focus. After it has broken, you'll have to refresh the whole page before you can use the inputs again.
Steps to reproduce:
- goto node/add of a content type with some text/textarea field + media image field
- browse for media and select a file
- quickly click inside one of the inputs before the media field is done processing
- the inputs are now unfocusable
It looks like a 'browser bug', with an easy 'work-around' as mentioned in http://bugs.jqueryui.com/ticket/9122
The attached patch applies this work-around to media.
Comment | File | Size | Author |
---|---|---|---|
#1 | ie11_media_broken_inputs-2383169-1.patch | 393 bytes | SpadXIII |
Comments
Comment #1
SpadXIII CreditAttribution: SpadXIII commentedBy changing the iframe.src to 'about:blank', the whole thing seems to get cleaned up properly by the browser.
See: http://bugs.jqueryui.com/ticket/9122#comment:5
Comment #2
ACF CreditAttribution: ACF commentedApplied and tested and can confirm it fixes the issue.
Comment #3
Dave ReidDo we have any confirmation this doesn't cause a regression in non-IE browsers?
Comment #4
Dave ReidWould this also be resolved by #2093435: Media browser popup not closing itself properly.?
Comment #5
Dave ReidComment #6
joseph.olstadwent with patch #27 from #2093435 instead
#2093435: Media browser popup not closing itself properly.