kopia lustrzana https://github.com/cheeaun/phanpy
Better fix
rodzic
f11edf3cd1
commit
76676fff53
|
@ -108,7 +108,9 @@ const Textarea = forwardRef((props, ref) => {
|
||||||
if (textExpanderRef.current) {
|
if (textExpanderRef.current) {
|
||||||
const { height } = textarea.getBoundingClientRect();
|
const { height } = textarea.getBoundingClientRect();
|
||||||
// textExpanderRef.current.style.height = height + 'px';
|
// textExpanderRef.current.style.height = height + 'px';
|
||||||
textExpanderRef.current.setStyle({ height: height + 'px' });
|
if (height) {
|
||||||
|
textExpanderRef.current.setStyle({ minHeight: height + 'px' });
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
resizeObserver.observe(textarea);
|
resizeObserver.observe(textarea);
|
||||||
|
|
Ładowanie…
Reference in New Issue