Skip to content

Commit beabbd3

Browse files
committed
fix: prevent clicks from removing the popover, which contains the input for file upload
1 parent 5ae075e commit beabbd3

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)