Skip to content

Commit 3d1cb13

Browse files
committed
fix(TextArea): use ResizeObserver for autoSize * 2
1 parent 6c27735 commit 3d1cb13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/fields/TextArea/TextArea.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ function TextArea(props: WithNullableValue<CubeTextAreaProps>, ref) {
108108
adjustHeight();
109109
}, [inputValue]);
110110

111-
// Also call it on window resize as that can affect wrapping
111+
// Also call it on element resize as that can affect wrapping
112112
useEnvironmentalEffect(() => {
113113
if (!autoSize || !inputRef.current) return;
114114

0 commit comments

Comments
 (0)