Skip to content

Commit

Permalink
fix: 修复 select 透传tagProps 属性失败问题 (#1497)
Browse files Browse the repository at this point in the history
* fix: 修复 select 透传tagProps 属性失败问题

* fix: 修复 select 透传tagProps 属性失败问题
  • Loading branch information
honkinglin authored Sep 19, 2022
1 parent 4653b46 commit c0e35ad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/select/base/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -338,13 +338,14 @@ const Select = forwardRefWithStatics(
return (
<Tag
key={key}
closable={!filterOption?.disabled}
{...tagProps}
onClose={({ e }) => {
e.stopPropagation();
const values = getSelectValueArr(value, value[key], true, valueType, keys);
onChange(values, null);
return;
tagProps?.onClose?.({ e });
}}
closable={!filterOption?.disabled}
>
{v}
</Tag>
Expand Down

0 comments on commit c0e35ad

Please sign in to comment.