Skip to content

Commit f94849e

Browse files
authored
fix: If the upload dropdown closes, the audio/video upload doesn't continue
fix: prevent clicks from removing the popover, which contains the inp…
2 parents 73113fe + beabbd3 commit f94849e

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/admin/js/media-manager/progress-modal.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,13 @@ class ProgressModal {
6868
z-index: 9999999;
6969
`
7070

71+
this.modal.addEventListener( 'mousedown', event => {
72+
// Prevent clicks from removing the upload popover
73+
event.preventDefault()
74+
event.stopPropagation()
75+
event.stopImmediatePropagation()
76+
} )
77+
7178
const wrapper = document.createElement( 'div' )
7279
wrapper.className = 'cimo-progress-wrapper'
7380
wrapper.style.cssText = `

0 commit comments

Comments
 (0)