We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0e03ed commit a7ac14eCopy full SHA for a7ac14e
src/plugin.ts
@@ -70,9 +70,11 @@ export const plugin: Plugin = {
70
71
removeDialog: (index, closeDelay) => {
72
const dialog = dialogs[index]
73
+ if (!dialog.props.modelValue)
74
+ return
75
dialog.props.modelValue = false
76
setTimeout(() => {
- dialogs.splice(index, 1)
77
+ dialogs.splice(dialogs.indexOf(dialog), 1)
78
}, closeDelay ?? defaultCloseDelay)
79
},
80
}
0 commit comments