Using the on setters doesn't cause the callbacks to be run within a Zone. We can fix this by using Object.getOwnPropertyNames(HTMLElement.prototype) and registering our own setters for the on ones, that then does the same logic as our addEventListener override.
Using the
on
setters doesn't cause the callbacks to be run within a Zone. We can fix this by usingObject.getOwnPropertyNames(HTMLElement.prototype)
and registering our own setters for theon
ones, that then does the same logic as ouraddEventListener
override.