I have place the chart into a Vue component. When I destroy the component (navigating to another page) and I resize the page, I get the error : Cannot read properties of null (reading 'getBoundingClientRect')
Because the resize event still exists on the window element.
How could I remove the event when my component is destroyed ?
I have place the chart into a Vue component. When I destroy the component (navigating to another page) and I resize the page, I get the error : Cannot read properties of null (reading 'getBoundingClientRect')
Because the resize event still exists on the window element.
How could I remove the event when my component is destroyed ?