Make WordPress Core

Ticket #53924: 53924.2.diff

File 53924.2.diff, 615 bytes (added by sourovroy, 3 years ago)

Patch with update comment on the line above.

  • src/js/media/views/modal.js

    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 */{ 
    138138                // Enable page scrolling.
    139139                $( 'body' ).removeClass( 'modal-open' );
    140140
    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();
    143143
    144144                /*
    145145                 * Make visible again to assistive technologies all body children that