Skip to content

Commit

Permalink
fix: fixed Logistration page display issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sundasnoreen12 committed Feb 25, 2025
1 parent 31a6a72 commit b5e7f8c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Form/FormControl.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const FormControl = React.forwardRef(({
autoResize,
onChange,
inputMask,
isAutoFill,
...props
}, ref) => {
const {
Expand All @@ -34,7 +35,7 @@ const FormControl = React.forwardRef(({
const [hasValue, checkInputEventValue] = useHasValue({
defaultValue: props.defaultValue,
value: props.value,
});
}) || isAutoFill;

Check warning on line 38 in src/Form/FormControl.jsx

View check run for this annotation

Codecov / codecov/patch

src/Form/FormControl.jsx#L38

Added line #L38 was not covered by tests

const handleResize = useCallback(() => {
if (as === 'textarea' && autoResize) {
Expand Down Expand Up @@ -127,6 +128,8 @@ FormControl.propTypes = {
autoResize: PropTypes.bool,
/** Specifies what format to use for the input mask. */
inputMask: PropTypes.string,
/** Indicates whether the field contains an autofill value. */
isAutoFill: PropTypes.bool,
};

FormControl.defaultProps = {
Expand All @@ -146,6 +149,7 @@ FormControl.defaultProps = {
isInvalid: undefined,
autoResize: false,
inputMask: undefined,
isAutoFill: false,
};

export default FormControl;

0 comments on commit b5e7f8c

Please sign in to comment.