zunnzunn / vue-ganttastic

Simple, interactive and highly customizable Gantt chart component for Vue 3
https://zunnzunn.github.io/vue-ganttastic/
584 stars 145 forks source link

When the component is unmounted, previously registered windows events are not removed #84

Open hungphan110698 opened 1 year ago

hungphan110698 commented 1 year ago

When the component mounted will register some events like: resize, mousemove, dragover... But when this component is unmounted, it looks like you didn't remove the events registered to listen. That caused console errors. It does not cause bugs for other user tasks, but for developers, seeing the red console screen is quite annoying. Could you help us fix these errors? We thank you very much.

Screen Shot 2023-08-10 at 13 54 09