diff --git a/src/js/media/views/frame/edit-attachments.js b/src/js/media/views/frame/edit-attachments.js
index 1351a31083..1eef9430ca 100644
a
|
b
|
EditAttachments = MediaFrame.extend(/** @lends wp.media.view.MediaFrame.EditAtta |
91 | 91 | |
92 | 92 | // Completely destroy the modal DOM element when closing it. |
93 | 93 | this.modal.on( 'close', _.bind( function() { |
| 94 | // Pause current audio/video even after closing the modal |
| 95 | $( '.mejs-pause button' ).click(); |
94 | 96 | // Remove the keydown event. |
95 | 97 | $( 'body' ).off( 'keydown.media-modal' ); |
96 | 98 | // Move focus back to the original item in the grid if possible. |