Skip to content

Commit

Permalink
fix(clerk-js): Disable country code picker when form is submitting (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
desiprisg committed Oct 10, 2023
1 parent 9101488 commit f6faf6f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/violet-avocados-fold.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/clerk-js': patch
---

Disable country picker button when form is submitted
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ const PhoneInputBase = forwardRef<HTMLInputElement, PhoneInputProps>((props, ref
borderBottomRightRadius: '0',
borderTopRightRadius: '0',
})}
isDisabled={rest.isDisabled}
>
<Flag iso={iso} />
<Text
Expand Down
1 change: 0 additions & 1 deletion packages/clerk-js/src/ui/primitives/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ type OwnProps = {
isSuccessful?: boolean;
};

// @ts-ignore
export type InputProps = PrimitiveProps<'input'> & StyleVariants<typeof applyVariants> & OwnProps & RequiredProp;

export const Input = React.forwardRef<HTMLInputElement, InputProps>((props, ref) => {
Expand Down

0 comments on commit f6faf6f

Please sign in to comment.