optimistex / ngx-select-ex

Angular based replacement for select boxes
https://optimistex.github.io/ngx-select-ex/
MIT License
111 stars 42 forks source link

Once drop-down list was open component cannot be destroyed due to event listener #170

Closed evyatarbh closed 4 years ago

evyatarbh commented 5 years ago

The component is adding a document.onmousemove event listener using an anonymous function, so it cannot be removed and the component cannot be destroyed. The event listener is being added here While debugging our application, I noticed this event listener is being constantly triggered, even after the parent component did not appear on the DOM anymore (which made Angular throw an error).

optimistex commented 5 years ago

Good catch! I'll fix it in a while...

optimistex commented 4 years ago

@evyatarbh Fixed: https://github.com/optimistex/ngx-select-ex/releases/tag/v3.7.6