Skip to content

Commit

Permalink
fix: use selected for item-selected effect
Browse files Browse the repository at this point in the history
  • Loading branch information
vagusX committed Apr 28, 2022
1 parent 5e7b03c commit 72b0e19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ const Segmented = React.forwardRef<HTMLDivElement, SegmentedProps>(
`${prefixCls}-item`,
{
[`${prefixCls}-item-selected`]:
segmentedOption.value === value && !thumbShow,
segmentedOption.value === selected && !thumbShow,
},
)}
checked={segmentedOption.value === selected}
Expand Down

0 comments on commit 72b0e19

Please sign in to comment.