From c948db0c489b69e4975da35c8fc0c8be41a57a1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?w=C5=AB=20y=C4=81ng?= Date: Thu, 14 Dec 2023 12:01:47 +0800 Subject: [PATCH] fix(Select): fix input change trigger (#2664) --- src/select/base/Select.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/select/base/Select.tsx b/src/select/base/Select.tsx index 44d7430fc6..c897c1a16d 100644 --- a/src/select/base/Select.tsx +++ b/src/select/base/Select.tsx @@ -124,7 +124,7 @@ const Select = forwardRefWithStatics( const handleShowPopup = (visible: boolean, ctx: PopupVisibleChangeContext) => { if (disabled) return; setShowPopup(visible, ctx); - visible && inputValue && onInputChange('', { trigger: 'focus' }); + !visible && onInputChange('', { trigger: 'blur' }); }; // 可以根据触发来源,自由定制标签变化时的筛选器行为