Skip to content

Commit

Permalink
Fix: Refactor PhoneInputWrapper component to include style prop in ph…
Browse files Browse the repository at this point in the history
…one-input-wrapper.tsx
  • Loading branch information
iPagar committed Apr 24, 2024
1 parent fad8e02 commit d5c1ebb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/phone-input/phone-input-wrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function PhoneInputWrapper(props: React.HTMLAttributes<HTMLDivElement>) {
setDialogPosition,
setPhoneInputRef,
} = usePhoneInput();
const { className } = props;
const { className, style } = props;

useLayoutEffect(() => {
if (phoneInputRef?.current) {
Expand All @@ -37,6 +37,7 @@ export function PhoneInputWrapper(props: React.HTMLAttributes<HTMLDivElement>) {
}}
style={{
...(!isPortal ? { position: 'relative' } : {}),
...style,
}}
/>
);
Expand Down

0 comments on commit d5c1ebb

Please sign in to comment.