From bfd44dacbd72b378d85af595f7af6987d8b72f83 Mon Sep 17 00:00:00 2001 From: Nguyen Minh Tuan Date: Wed, 8 Jan 2025 17:19:25 +0700 Subject: [PATCH] fix: autoResize not working when value is updated --- components/lib/inputtextarea/InputTextarea.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lib/inputtextarea/InputTextarea.js b/components/lib/inputtextarea/InputTextarea.js index d0b7ad2307..bc3225df25 100644 --- a/components/lib/inputtextarea/InputTextarea.js +++ b/components/lib/inputtextarea/InputTextarea.js @@ -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);