We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c39fdc9 + 0fccbc0 commit 152e92bCopy full SHA for 152e92b
src/index.tsx
@@ -197,6 +197,7 @@ const Segmented = React.forwardRef<HTMLDivElement, SegmentedProps>(
197
/>
198
{segmentedOptions.map((segmentedOption) => (
199
<InternalSegmentedOption
200
+ {...segmentedOption}
201
key={segmentedOption.value}
202
prefixCls={prefixCls}
203
className={classNames(
@@ -209,7 +210,6 @@ const Segmented = React.forwardRef<HTMLDivElement, SegmentedProps>(
209
210
)}
211
checked={segmentedOption.value === rawValue}
212
onChange={handleChange}
- {...segmentedOption}
213
disabled={!!disabled || !!segmentedOption.disabled}
214
215
))}
0 commit comments