Skip to content

Commit

Permalink
fix(look&feel): fix Text input to have modifier error to be applied a…
Browse files Browse the repository at this point in the history
…utomatically if error message (#782)

Co-authored-by: Jonathan VACHERAT <[email protected]>
  • Loading branch information
fffan64 and Jonathan VACHERAT authored Jan 22, 2025
1 parent b137d7d commit 293ddda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/look-and-feel/react/src/Form/Text/Text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const Text = forwardRef<HTMLInputElement, Props>(
const componentClassName = getComponentClassName(
"af-form__input-text",
className,
classModifier,
classModifier + (error ? " error" : ""),
);

let inputId = useId();
Expand Down

0 comments on commit 293ddda

Please sign in to comment.