Skip to content
Permalink
Browse files

Media: Fix JavaScript TypeError after [45376].

Props desrosj, afercia.
Fixes #48021.


git-svn-id: https://develop.svn.wordpress.org/trunk@46321 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information...
afercia committed Sep 26, 2019
1 parent da43c14 commit 8c8999d933f9330eb311551a3399e67b5d41547b
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/js/media/views/uploader/status.js
@@ -128,7 +128,9 @@ UploaderStatus = View.extend(/** @lends wp.media.view.UploaderStatus.prototype *
}
wp.Uploader.errors.reset();
// Move focus to the modal after the dismiss button gets removed from the DOM.
this.controller.modal.focusManager.focus();
if ( this.controller.modal ) {
this.controller.modal.focusManager.focus();
}
}
});

0 comments on commit 8c8999d

Please sign in to comment.
You can’t perform that action at this time.