Skip to content

Commit

Permalink
fix(Select): fix input change trigger (#2664)
Browse files Browse the repository at this point in the history
  • Loading branch information
uyarn authored and NWYLZW committed Jan 11, 2024
1 parent 35dd691 commit c948db0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/select/base/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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' });
};

// 可以根据触发来源,自由定制标签变化时的筛选器行为
Expand Down

0 comments on commit c948db0

Please sign in to comment.