Make WordPress Core

Changeset 46321


Ignore:
Timestamp:
09/26/2019 01:05:19 PM (7 years ago)
Author:
afercia
Message:

Media: Fix JavaScript TypeError after [45376].

Props desrosj, afercia.
Fixes #48021.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/media/views/uploader/status.js

    r45934 r46321  
    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});
Note: See TracChangeset for help on using the changeset viewer.