From 872327a7d501b3d624737c680f136d99ea60ae36 Mon Sep 17 00:00:00 2001 From: Ernest Date: Tue, 9 Mar 2021 22:20:15 +0800 Subject: [PATCH] fix(cascader): prevent log error for before filter (#1582) --- packages/cascader/src/index.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/cascader/src/index.vue b/packages/cascader/src/index.vue index b9e620d8bd..e0ab7164c9 100644 --- a/packages/cascader/src/index.vue +++ b/packages/cascader/src/index.vue @@ -504,6 +504,7 @@ export default defineComponent({ if (isPromise(passed)) { passed.then(calculateSuggestions) + .catch(() => { /* prevent log error */ }) } else if (passed !== false) { calculateSuggestions() } else {