diff --git a/js/src/dom/event-handler.js b/js/src/dom/event-handler.js index 8bed9b39bb79..87f936b41d44 100644 --- a/js/src/dom/event-handler.js +++ b/js/src/dom/event-handler.js @@ -234,7 +234,7 @@ const EventHandler = { if (typeof callable !== 'undefined') { // Simplest case: handler is passed, remove that listener ONLY. - if (!storeElementEvent) { + if (!Object.keys(storeElementEvent).length) { return }