dom/event: fix event delegation not bubbling up properly