Skip to content

Commit

Permalink
[@mantine/core] SegmetedControl: Fix floating indicator being invisib…
Browse files Browse the repository at this point in the history
…le in uncontrolled component (#2454)
  • Loading branch information
rtivital committed Sep 15, 2022
1 parent 145881b commit 5024086
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Expand Up @@ -28,3 +28,7 @@ export function EmptyStringValue() {
/>
);
}

export function InvisibleIndicator() {
return <SegmentedControl color="cyan" data={data} />;
}
2 changes: 1 addition & 1 deletion src/mantine-core/src/SegmentedControl/SegmentedControl.tsx
Expand Up @@ -212,7 +212,7 @@ export const SegmentedControl = forwardRef<HTMLDivElement, SegmentedControlProps

return (
<Box className={cx(classes.root, className)} ref={useMergedRef(observerRef, ref)} {...others}>
{typeof value === 'string' && shouldAnimate && (
{typeof _value === 'string' && shouldAnimate && (
<Box
component="span"
className={classes.active}
Expand Down

0 comments on commit 5024086

Please sign in to comment.