From 91527cbc25a5b372fd6ac7fab2040c0f1c0f0331 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Sat, 23 Apr 2022 14:29:08 +0800 Subject: [PATCH] fix: select trigger twice search, close #5537 --- components/vc-select/BaseSelect.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/vc-select/BaseSelect.tsx b/components/vc-select/BaseSelect.tsx index 7cd8954a8..76d42c0b2 100644 --- a/components/vc-select/BaseSelect.tsx +++ b/components/vc-select/BaseSelect.tsx @@ -401,7 +401,7 @@ export default defineComponent({ onInternalSearch('', false, false); } }, - { immediate: true }, + { immediate: true, flush: 'post' }, ); // ============================ Disabled ============================ @@ -608,7 +608,7 @@ export default defineComponent({ } } }, - { immediate: true }, + { immediate: true, flush: 'post' }, ); });