From e4327a3ebd7ce239378af470622c7cc26716c4a5 Mon Sep 17 00:00:00 2001 From: neverland Date: Sun, 27 Jan 2019 17:11:17 +0800 Subject: [PATCH] [bugfix] Toast: clear in multiple mode (#2635) --- packages/toast/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/toast/index.js b/packages/toast/index.js index e69e9caac..83d867183 100644 --- a/packages/toast/index.js +++ b/packages/toast/index.js @@ -51,6 +51,8 @@ function Toast(options = {}) { toast.value = false; if (!singleton && !isServer) { + clearTimeout(toast.timer); + queue = queue.filter(item => item !== toast); document.body.removeChild(toast.$el); toast.$destroy(); }