Skip to content

Commit 171050b

Browse files
fix: add validation tab hidden and change validation value single select
1 parent 221f0a3 commit 171050b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/components/Form/SingleSelect.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ function SingleSelect({
191191
)}
192192
<input
193193
placeholder={isFilter ? placeholder : ''}
194-
value={getInputLabel()}
194+
value={isFilter ? getInputLabel() : value}
195195
{...otherProps}
196196
className={composeClasses(
197197
'outline-none w-full bg-transparent truncate text-sm',

src/components/Tabs/Tab.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ const Tab = forwardRef<HTMLButtonElement, Props>(
6363
variant = 'primary'
6464
} = otherProps as PrivateProps
6565

66+
if (hidden) return null
67+
6668
const handleClick = useCallback(
6769
(event: React.MouseEvent<HTMLButtonElement>) => {
6870
if (disabled) return

0 commit comments

Comments
 (0)