MediaUpload: Hidden Button Element Is Created When Block Rendered #26422
Labels
[Feature] Media
Anything that impacts the experience of managing media
[Type] Bug
An existing feature does not function as intended
Describe the bug
Whenever the Site Logo is rendered, a
<button type="button" class="browser" style="display: none;"></button>
element is added to the DOM, right before</body>
.cc @scruffian
To reproduce
Steps to reproduce the behavior:
</body>
.button
element added to the DOM right before</body>
.This happens whenever the Site Logo block is rendered, for example, try inserting the block and switch to code editor and back to visual (which renders the block again).
In some cases it only creates 1
button
, but usually 2 of them.Expected behavior
I didn't expect to see a hidden
button
added to the DOM. 😅Screenshots
The browser's element inspection tool, after adding a few Site Logo blocks to the editor.
Editor version (please complete the following information):
Desktop:
The text was updated successfully, but these errors were encountered: