Skip to content

Commit

Permalink
Refactor PhoneInputRoot component in phone-input.tsx to spread rest p…
Browse files Browse the repository at this point in the history
…rops in PhoneInputWrapper
  • Loading branch information
iPagar committed Apr 11, 2024
1 parent 929b2bb commit 3015ea7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/phone-input/phone-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export function PhoneInputRoot(
onCountryChange,
onPhoneChange,
onValidationChange,
...rest
} = props;
const state = usePhoneState({
initialCountry,
Expand Down Expand Up @@ -142,7 +143,7 @@ export function PhoneInputRoot(
props={phoneProps}
state={state}
>
<PhoneInputWrapper {...props}>{renderedChildren}</PhoneInputWrapper>
<PhoneInputWrapper {...rest}>{renderedChildren}</PhoneInputWrapper>
</PhoneInputContextProvider>
);
}
Expand Down

0 comments on commit 3015ea7

Please sign in to comment.