Skip to content

Commit

Permalink
fix life cycle
Browse files Browse the repository at this point in the history
  • Loading branch information
zmh-program committed Oct 3, 2023
1 parent b9d268a commit 167e80f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions app/src/components/RichEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,6 @@ function RichEditor({
});

preview.style.height = `${target.clientHeight}px`;

return () => {
target.removeEventListener("transitionstart", listener);
clearInterval(task);
};
}, [input]);

return (
Expand Down

0 comments on commit 167e80f

Please sign in to comment.