diff --git a/src/js/udom.js b/src/js/udom.js index 7cb35af08..caa2a824c 100644 --- a/src/js/udom.js +++ b/src/js/udom.js @@ -621,7 +621,7 @@ const makeEventHandler = function(selector, callback) { const receiver = event.target; const ancestor = receiver.closest(selector); if ( - ancestor !== null && + ancestor === receiver && ancestor !== dispatcher && dispatcher.contains(ancestor) ) {