Skip to content

Commit

Permalink
Revert form component error element type change
Browse files Browse the repository at this point in the history
  • Loading branch information
Oksamies committed Nov 27, 2023
1 parent a7df0b5 commit 72a5dc7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function FormSelectSearch<
disabled={isSubmitting || disabled}
options={options}
/>
{error && <div className={styles.errorMessage}>{error.message}</div>}
{error && <span className={styles.errorMessage}>{error.message}</span>}
</>
);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/cyberstorm-forms/src/components/FormTextInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function FormTextInput<
color={isDirty || invalid ? (invalid ? "red" : "green") : undefined}
disabled={isSubmitting || disabled}
/>
{error && <div className={styles.errorMessage}>{error.message}</div>}
{error && <span className={styles.errorMessage}>{error.message}</span>}
</>
);
}
Expand Down

0 comments on commit 72a5dc7

Please sign in to comment.