Ensure event handlers are never orphaned preventing clicking on cells
In #1085 (closed) we fixed on instance of a bug where a javascript event handler was registered, called event.preventDefault()
and then was never unregistered, breaking clicks globally.
This bug has resurfaced again and we should fix the root cause. The root cause is that we often manually create our own custom event handlers and store them on literal DOM objects. We then rely on these event handler references being stored on the DOM element to unregister them at the appropriate time. This can fail in a large number of ways causing old event handlers to be never unregistered. We should figure out a much more robust way of adding and ensuring the unregistration of event handlers.