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