pull/1217/head
Lim Chee Aun 2025-09-03 09:00:35 +08:00
rodzic f11edf3cd1
commit 76676fff53
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -108,7 +108,9 @@ const Textarea = forwardRef((props, ref) => {
if (textExpanderRef.current) {
const { height } = textarea.getBoundingClientRect();
// textExpanderRef.current.style.height = height + 'px';
textExpanderRef.current.setStyle({ height: height + 'px' });
if (height) {
textExpanderRef.current.setStyle({ minHeight: height + 'px' });
}
}
});
resizeObserver.observe(textarea);