fix life cycle

This commit is contained in:
Zhang Minghan 2023-10-03 23:28:30 +08:00
parent b9d268ab0d
commit 167e80f0dc

View File

@ -54,11 +54,6 @@ function RichEditor({
}); });
preview.style.height = `${target.clientHeight}px`; preview.style.height = `${target.clientHeight}px`;
return () => {
target.removeEventListener("transitionstart", listener);
clearInterval(task);
};
}, [input]); }, [input]);
return ( return (