Skip to content

Commit

Permalink
🩹 front: fix react unknown property passed on by input (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericlinagora committed May 13, 2024
1 parent e083ce4 commit e0fa40f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tdrive/frontend/src/app/atoms/input/input-text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const Input = (props: InputProps) => {
<textarea
ref={props.inputRef as React.Ref<HTMLTextAreaElement>}
className={inputClassName + ' ' + props.inputClassName + ' ' + props.className}
{..._.omit(props as any, 'label', 'inputClassName', 'className', 'value', 'size')}
{..._.omit(props as any, 'label', 'inputClassName', 'inputRef', 'className', 'value', 'size')}
>
{props.value}
</textarea>
Expand All @@ -75,7 +75,7 @@ export const Input = (props: InputProps) => {
ref={props.inputRef as React.Ref<HTMLInputElement>}
type="text"
className={inputClassName + ' ' + props.inputClassName + ' ' + props.className}
{..._.omit(props, 'label', 'inputClassName', 'className', 'size')}
{..._.omit(props, 'label', 'inputClassName', 'inputRef', 'className', 'size')}
/>
))}
</>
Expand Down

0 comments on commit e0fa40f

Please sign in to comment.