From cb23efccab3150ec9cec3a23b1f06c14c38225b0 Mon Sep 17 00:00:00 2001 From: Stoil Terziev Date: Sat, 20 May 2023 17:41:17 +0300 Subject: [PATCH] fix: options' className overwriting default styles instead of extending them (#175) --- src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index 37933eb..2541a6c 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -197,6 +197,7 @@ const Segmented = React.forwardRef( /> {segmentedOptions.map((segmentedOption) => ( ( )} checked={segmentedOption.value === rawValue} onChange={handleChange} - {...segmentedOption} disabled={!!disabled || !!segmentedOption.disabled} /> ))}