From 5b6dadc39ff3e27828e3aaf9813e3a9e7ba5b28f Mon Sep 17 00:00:00 2001 From: neverland Date: Sat, 22 May 2021 19:46:55 +0800 Subject: [PATCH] fix(Toast): should reset duration when type or message changed (#8742) --- src/toast/Toast.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/toast/Toast.tsx b/src/toast/Toast.tsx index 16d1dfdb7..5e586473c 100644 --- a/src/toast/Toast.tsx +++ b/src/toast/Toast.tsx @@ -119,7 +119,7 @@ export default defineComponent({ watch(() => [props.show, props.forbidClick], toggleClickable); watch( - () => [props.show, props.duration], + () => [props.show, props.type, props.message, props.duration], () => { clearTimer(); if (props.show && props.duration > 0) {