Skip to content

Commit

Permalink
fix: autoResize not working when value is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
tnowad committed Jan 8, 2025
1 parent fe6ef36 commit bfd44da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/inputtextarea/InputTextarea.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export const InputTextarea = React.memo(
resize(true);
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [props.autoResize]);
}, [props.autoResize, props.value]);

const isFilled = React.useMemo(() => ObjectUtils.isNotEmpty(props.value) || ObjectUtils.isNotEmpty(props.defaultValue), [props.value, props.defaultValue]);
const hasTooltip = ObjectUtils.isNotEmpty(props.tooltip);
Expand Down

0 comments on commit bfd44da

Please sign in to comment.