Skip to content

Commit

Permalink
MediaUpload: Remove dialog markup on close
Browse files Browse the repository at this point in the history
Co-authored-by: joemcgill <[email protected]>
  • Loading branch information
Mamaduka and joemcgill committed May 31, 2024
1 parent 7de8444 commit a60ae6a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/media-utils/src/components/media-upload/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,8 @@ class MediaUpload extends Component {
if ( onClose ) {
onClose();
}

this.frame.detach();
}

updateCollection() {
Expand Down

0 comments on commit a60ae6a

Please sign in to comment.