Make WordPress Core

Ticket #48021: 48021.diff

File 48021.diff, 512 bytes (added by afercia, 6 years ago)
  • src/js/media/views/uploader/status.js

     
    128128                }
    129129                wp.Uploader.errors.reset();
    130130                // Move focus to the modal after the dismiss button gets removed from the DOM.
    131                 this.controller.modal.focusManager.focus();
     131                if ( this.controller.modal ) {
     132                        this.controller.modal.focusManager.focus();
     133                }
    132134        }
    133135});
    134136