mirror of
https://github.com/irislib/iris-messenger.git
synced 2024-10-18 06:03:22 +00:00
fix feed layout shift by textarea
This commit is contained in:
parent
60e9d13d78
commit
602587d004
@ -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`;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user