diff --git a/src/components/Form/SingleSelect.tsx b/src/components/Form/SingleSelect.tsx index 695715c6..abe5cbcf 100644 --- a/src/components/Form/SingleSelect.tsx +++ b/src/components/Form/SingleSelect.tsx @@ -128,7 +128,7 @@ function SingleSelect({ })) const getInputLabel = () => { - if (!isFilter && !selectedOption) return placeholder || label || '' + if (!isFilter && !selectedOption) return '' if (!selectedOption) return placeholder || label || '' return selectedOption.label || selectedOption.value.toString() diff --git a/src/components/Tabs/TabGroup.tsx b/src/components/Tabs/TabGroup.tsx index 4bfa17e1..791c6df9 100644 --- a/src/components/Tabs/TabGroup.tsx +++ b/src/components/Tabs/TabGroup.tsx @@ -120,7 +120,6 @@ function TabGroup({ }, [orientation, variant, refContainer, dashRect] ) - const onClick = useCallback( (event: MouseEvent) => { const nodes = Array.prototype.slice.call(refContainer.current?.children) @@ -156,6 +155,7 @@ function TabGroup({ ...child.props }) } + if ((child as React.ReactElement)?.props?.hidden) return null return child }) }, [ @@ -172,8 +172,9 @@ function TabGroup({ ]) useEffect(() => { + if ((children as React.ReactElement)?.props?.hidden) return handleChangeIndicator(value) - }, [orientation, variant, wideLine, value]) + }, [orientation, variant, wideLine, value, children]) return (
{tabs ? ( - - {tabs.items.map((tab, index) => ( -