Jemt / Fit.UI

Fit.UI is a JavaScript based UI framework built on Object Oriented principles
http://fitui.org
GNU Lesser General Public License v3.0
19 stars 7 forks source link

DropDown: Toggling open state multiple times introduces memory leak and exceptions when scrolling document if control is disposed #195

Closed FlowIT-JIT closed 10 months ago

FlowIT-JIT commented 10 months ago

Consider https://jsfiddle.net/65Lnt0h1/2/

Toggling the open state of the DropDown control multiple times causes multiple event registrations, of which only the most recent registration is cleaned up. This results in a memory leak, and causes exceptions to be thrown if the control is disposed and its scroll parent is scrolled.

image