Skip to content

Commit 3294c9f

Browse files
committed
fix: input overflow issues fixed
1 parent b449f5d commit 3294c9f

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

src/components/primitives/Input/Input.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@ const Input = (props: IInputProps, ref: any) => {
1919
return null;
2020
}
2121

22-
if (props.InputLeftElement || props.InputRightElement)
22+
if (
23+
props.InputLeftElement ||
24+
props.InputRightElement ||
25+
props.leftElement ||
26+
props.rightElement
27+
)
2328
return <InputAdvanced {...props} ref={ref} inputProps={inputProps} />;
2429
else return <InputBase {...props} ref={ref} inputProps={inputProps} />;
2530
};

src/components/primitives/Input/InputAdvanced.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ const InputAdvance = (
9797
flexDirection="row"
9898
alignItems="center"
9999
justifyContent="space-between"
100-
overflow="hidden"
101100
{...layoutProps}
102101
ref={mergeRefs([_ref, wrapperRef])}
103102
>

src/theme/components/input.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const baseStyle = (props: Record<string, any>) => {
3131
fontFamily: 'body',
3232
p: '2',
3333
borderRadius: 'sm',
34+
overflow: 'auto',
3435
color: mode('coolGray.800', 'warmGray.50')(props),
3536
placeholderTextColor: 'muted.400',
3637
background: 'transparent',

0 commit comments

Comments
 (0)