diff --git a/.changeset/odd-lemons-reply.md b/.changeset/odd-lemons-reply.md new file mode 100644 index 00000000000..a845151cc84 --- /dev/null +++ b/.changeset/odd-lemons-reply.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/packages/clerk-js/src/ui/elements/FormControl.tsx b/packages/clerk-js/src/ui/elements/FormControl.tsx index 0838dd6e3a3..2c4546a4a90 100644 --- a/packages/clerk-js/src/ui/elements/FormControl.tsx +++ b/packages/clerk-js/src/ui/elements/FormControl.tsx @@ -1,8 +1,6 @@ -import type { FieldId } from '@clerk/types'; -import type { ClerkAPIError } from '@clerk/types'; +import type { ClerkAPIError, FieldId } from '@clerk/types'; import type { PropsWithChildren } from 'react'; -import { useRef } from 'react'; -import React, { forwardRef, useCallback, useMemo, useState } from 'react'; +import React, { forwardRef, useCallback, useMemo, useRef, useState } from 'react'; import type { LocalizationKey } from '../customizables'; import { @@ -151,7 +149,7 @@ export const FormFeedback = (props: FormFeedbackProps) => { const feedbacksRef = useRef<{ a?: Feedback; b?: Feedback; - }>({ a: { feedback, feedbackType, shouldEnter: true }, b: undefined }); + }>({ a: undefined, b: undefined }); const { getFormTextAnimation } = useFormTextAnimation(); const defaultElementDescriptors = {