[wp-trac] [WordPress Trac] #49431: Media uploader window leaves behind orphan button element in Block Editor

WordPress Trac noreply at wordpress.org
Fri Feb 14 07:13:52 UTC 2020


#49431: Media uploader window leaves behind orphan button element in Block Editor
--------------------------+-----------------------------
 Reporter:  talldanwp     |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:  5.0
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 This issue was originally reported in the Gutenberg Github repo -
 https://github.com/WordPress/gutenberg/issues/9184. Reporting this here as
 well—currently it looks like a fix might need to be applied in core, but
 also possibly in both Gutenberg and core.

 ----

 **Describe the bug**
 Whenever you focus an Image Block or Gallery Block, a button element is
 created just before the closing body tag. Then, after blurring, the button
 is still there. This can be performed indefinitely times, leading to a
 massive amount of orphan button elements

 ----

 **Steps to reproduce**
 1. Open up the block editor
 2. Open up dev tools and inspect the closing body tag
 3. In the editor sidebar, switch between the document and the block tab
 and back again
 4. Check the dev tools, observe that button(s) are appended to the dom
 every time the document tab is opened

 Expected: No buttons are appended

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


More information about the wp-trac mailing list