Closed pmierkowski closed 3 years ago
@pmierkowski Thanks for your PR. This should be done to the "unstable" branch but perhaps the changes are minor enough for @canbax to do them directly in the "unstable" branch after a review.
@ugurdogrusoz Thanks for the quick reply. If that's a problem, I can do PR to "unstable".
That'd be great, thanks
@ugurdogrusoz Done: https://github.com/iVis-at-Bilkent/cytoscape.js-context-menus/pull/58
In file
cytoscape-context-menus.js
in line 99 there is added listener to document element:document.addEventListener('mouseup', onClick)
but in the line 189 listener was removed from document.body elementdocument.body.removeEventListener('mouseup', getScratchProp('hideOnNonCyClick'))
which cause memory leaks in Angular 10 pomimo despite of use destroy.