Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
manni497 committed Oct 14, 2024
1 parent 31b3d42 commit ab3a176
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/FormattedInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const FormattedInputInternal = <T extends FieldValues = UnknownType>(props: Form
}
},
disabled: isDisabled,
className,
className: classnames("form-control", className),
};

return (
Expand Down Expand Up @@ -110,7 +110,7 @@ const FormattedInput = <T extends FieldValues = UnknownType>(props: FormattedInp
onBlur: propsOnBlur,
className = "",
} = props;

const { name, id } = useSafeNameId(props?.name ?? "", props.id);
const { control, disabled: formDisabled = false } = useFormContextInternal() ?? {};

Expand Down

0 comments on commit ab3a176

Please sign in to comment.