Skip to content

Commit

Permalink
chore(clerk-js): Attempt to fix deploy retheme PR
Browse files Browse the repository at this point in the history
  • Loading branch information
panteliselef committed Dec 16, 2024
1 parent 5ed3576 commit 79a4019
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
2 changes: 2 additions & 0 deletions .changeset/quick-pens-hug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
2 changes: 1 addition & 1 deletion packages/clerk-js/src/ui/primitives/hooks/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from './useFormControl';
export * from './useFormField';
export * from './useInput';
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,14 @@ export const FormFieldContextProvider = (props: React.PropsWithChildren<FormFiel
// TODO: This shouldnt be targettable
const id = `${propsId}-field`;

/**
* Create a debounced version of the feedback.
*/
// Create a debounced version of the feedback.
const { debounced } = useFormControlFeedback({ feedback, feedbackType, isFocused });

/**
* Both html attributes (e.g. data-invalid) and css styles depend on hasError being debounced
*/
// Both html attributes (e.g. data-invalid) and css styles depend on hasError being debounced
const hasError = debounced.feedbackType === 'error';

/**
* Track whether the `FormErrorText` has been rendered.
* We use this to append its id the `aria-describedby` of the `input`.
*/
// Track whether the `FormErrorText` has been rendered.
// We use this to append its id the `aria-describedby` of the `input`.
const errorMessageId = hasError ? `error-${propsId}` : '';
const value = React.useMemo(
() => ({
Expand Down

0 comments on commit 79a4019

Please sign in to comment.