[wp-trac] [WordPress Trac] #48021: Dismissing notice on the media library triggers error in console

WordPress Trac noreply at wordpress.org
Wed Sep 11 18:11:08 UTC 2019


#48021: Dismissing notice on the media library triggers error in console
----------------------------------------+-----------------------------
 Reporter:  desrosj                     |      Owner:  (none)
     Type:  defect (bug)                |     Status:  new
 Priority:  normal                      |  Milestone:  Awaiting Review
Component:  Media                       |    Version:
 Severity:  minor                       |   Keywords:  needs-patch
  Focuses:  javascript, administration  |
----------------------------------------+-----------------------------
 When viewing the media library, clicking the dismiss X on an admin notice
 triggers a `TypeError` warning in the console.


 {{{
 TypeError: this.controller.modal is undefined ... media-views.js5326
 }}}

 Steps I have been using to trigger.

 1. Go to Media -> Library page.
 1. Drag a restricted file into the download area (zip, etc.).
 1. An admin notice should appear that the file type is not allowed.
 1. Open browser console and observe the error when the X is clicked on the
 notice.

 The error does not appear to cause any odd behavior after it happens.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48021>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list