Skip to content

Commit

Permalink
Omit children from input
Browse files Browse the repository at this point in the history
  • Loading branch information
Foxhoundn committed Aug 9, 2023
1 parent 3a37f83 commit d1884c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Input/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { omit } from 'lodash';
import { rgba } from 'polished';
import React, { forwardRef, useState } from 'react';
import styled, { css } from 'styled-components';
Expand Down Expand Up @@ -215,7 +216,7 @@ const ReqoreInput = forwardRef<HTMLDivElement, IReqoreInputProps>(
</StyledIconWrapper>
)}
<StyledInput
{...rest}
{...omit(rest, ['children'])}
effect={{
interactive: !rest?.disabled && !readOnly,
...rest?.effect,
Expand Down

0 comments on commit d1884c2

Please sign in to comment.