Skip to content

Commit

Permalink
Merge pull request #600 from Tencent/fix/select-filter
Browse files Browse the repository at this point in the history
fix(Select): 修复远程搜索第一次输入后无法完整删除的问题
  • Loading branch information
honkinglin authored Apr 12, 2022
2 parents 6a1d560 + 267988d commit 6860d01
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 @@ -236,8 +236,8 @@ const Select = forwardRefWithStatics(

// 处理输入框逻辑
const handleInputChange = (value: string) => {
if (selectedLabel === value) return;
onInputChange(value);
if (selectedLabel === value) return;

if (isFunction(onSearch)) {
onSearch(value);
Expand Down

0 comments on commit 6860d01

Please sign in to comment.