fix feed layout shift by textarea

This commit is contained in:
Martti Malmi 2023-08-23 19:39:35 +03:00
parent 60e9d13d78
commit 602587d004

View File

@ -38,7 +38,7 @@ const TextArea: React.FC<TextAreaProps> = ({
useEffect(() => {
const el = ref.current;
if (el) {
if (el && value) {
el.style.height = 'auto'; // Resetting the height
el.style.height = `${el.scrollHeight}px`;
}