[bugfix] Toast: destroy instance in multiple mode (#1959)
This commit is contained in:
@@ -49,6 +49,11 @@ function Toast(options = {}) {
|
||||
...parseOptions(options),
|
||||
clear() {
|
||||
toast.value = false;
|
||||
|
||||
if (!singleton && !isServer) {
|
||||
document.body.removeChild(toast.$el);
|
||||
toast.$destroy();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user