Skip to content

Commit

Permalink
fix: options' className overwriting default styles instead of extendi…
Browse files Browse the repository at this point in the history
…ng them (#175)
  • Loading branch information
stoil-terziev authored May 20, 2023
1 parent c39fdc9 commit cb23efc
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 @@ -197,6 +197,7 @@ const Segmented = React.forwardRef<HTMLDivElement, SegmentedProps>(
/>
{segmentedOptions.map((segmentedOption) => (
<InternalSegmentedOption
{...segmentedOption}
key={segmentedOption.value}
prefixCls={prefixCls}
className={classNames(
Expand All @@ -209,7 +210,6 @@ const Segmented = React.forwardRef<HTMLDivElement, SegmentedProps>(
)}
checked={segmentedOption.value === rawValue}
onChange={handleChange}
{...segmentedOption}
disabled={!!disabled || !!segmentedOption.disabled}
/>
))}
Expand Down

0 comments on commit cb23efc

Please sign in to comment.