Skip to content

Commit

Permalink
fix(select): tag is not closable when readonly (#1862)
Browse files Browse the repository at this point in the history
  • Loading branch information
uyarn authored Jan 5, 2023
1 parent c6c6a8a commit 14b7b97
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 @@ -297,7 +297,7 @@ const Select = forwardRefWithStatics(
return (
<Tag
key={key}
closable={!filterOption?.disabled && !disabled}
closable={!filterOption?.disabled && !disabled && !readonly}
{...tagProps}
onClose={({ e }) => {
e.stopPropagation();
Expand Down

0 comments on commit 14b7b97

Please sign in to comment.