diff --git a/src/js/media/views/modal.js b/src/js/media/views/modal.js index 42fc7c9f60..f28c92e7e6 100644 --- a/src/js/media/views/modal.js +++ b/src/js/media/views/modal.js @@ -138,8 +138,8 @@ Modal = wp.media.View.extend(/** @lends wp.media.view.Modal.prototype */{ // Enable page scrolling. $( 'body' ).removeClass( 'modal-open' ); - // Hide modal and remove restricted media modal tab focus once it's closed. - this.$el.hide().off( 'keydown' ); + // Hide the modal element by adding display none. + this.$el.hide(); /* * Make visible again to assistive technologies all body children that