Skip to content

Commit

Permalink
fix: input overflow issues fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
makkarMeenu committed Nov 12, 2021
1 parent b449f5d commit 3294c9f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/components/primitives/Input/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@ const Input = (props: IInputProps, ref: any) => {
return null;
}

if (props.InputLeftElement || props.InputRightElement)
if (
props.InputLeftElement ||
props.InputRightElement ||
props.leftElement ||
props.rightElement
)
return <InputAdvanced {...props} ref={ref} inputProps={inputProps} />;
else return <InputBase {...props} ref={ref} inputProps={inputProps} />;
};
Expand Down
1 change: 0 additions & 1 deletion src/components/primitives/Input/InputAdvanced.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ const InputAdvance = (
flexDirection="row"
alignItems="center"
justifyContent="space-between"
overflow="hidden"
{...layoutProps}
ref={mergeRefs([_ref, wrapperRef])}
>
Expand Down
1 change: 1 addition & 0 deletions src/theme/components/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const baseStyle = (props: Record<string, any>) => {
fontFamily: 'body',
p: '2',
borderRadius: 'sm',
overflow: 'auto',
color: mode('coolGray.800', 'warmGray.50')(props),
placeholderTextColor: 'muted.400',
background: 'transparent',
Expand Down

0 comments on commit 3294c9f

Please sign in to comment.