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:

  1. goto node/add of a content type with some text/textarea field + media image field
  2. browse for media and select a file
  3. quickly click inside one of the inputs before the media field is done processing
  4. 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.

CommentFileSizeAuthor
#1 ie11_media_broken_inputs-2383169-1.patch393 bytesSpadXIII
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

SpadXIII’s picture

Status: Active » Needs review
FileSize
393 bytes

By 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

ACF’s picture

Status: Needs review » Reviewed & tested by the community

Applied and tested and can confirm it fixes the issue.

Dave Reid’s picture

Do we have any confirmation this doesn't cause a regression in non-IE browsers?

Dave Reid’s picture

Dave Reid’s picture

joseph.olstad’s picture

Status: Reviewed & tested by the community » Closed (duplicate)

went with patch #27 from #2093435 instead
#2093435: Media browser popup not closing itself properly.