Skip to content

Commit

Permalink
feat(text): allow empty id
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeKESTEMAN committed Jan 19, 2024
1 parent ceef808 commit ba86a04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/Form/Text/TextInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const TextInput = ({
...inputTextProps
}: Props) => {
const inputUseId = useId();
const inputId = id || inputUseId;
const inputId = id ?? inputUseId;
const { inputClassModifier, inputFieldClassModifier } = useInputClassModifier(
classModifier,
disabled,
Expand Down

0 comments on commit ba86a04

Please sign in to comment.