mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-23 18:29:09 +00:00
dashboard: bail out of closeModal() if already closed
This commit is contained in:
parent
6b7ef55180
commit
10bbebfde1
1 changed files with 2 additions and 1 deletions
|
|
@ -341,7 +341,8 @@ module.exports = class Dashboard extends Plugin {
|
|||
manualClose = true // Whether the modal is being closed by the user (`true`) or by other means (e.g. browser back button)
|
||||
} = opts
|
||||
|
||||
if (this.getPluginState().isClosing) {
|
||||
const { isHidden, isClosing } = this.getPluginState()
|
||||
if (isHidden || isClosing) {
|
||||
// short-circuit if animation is ongoing
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue