From 24855f0cca92576bd269d458cd0d075fc4699744 Mon Sep 17 00:00:00 2001 From: msidolphin Date: Tue, 5 Jun 2018 22:29:15 +0800 Subject: [PATCH] Update popup-manager.js invoking this method prevents event from reaching any objects other than the current object. --- src/utils/popup/popup-manager.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/popup/popup-manager.js b/src/utils/popup/popup-manager.js index c7a83a3e..2ccb7224 100644 --- a/src/utils/popup/popup-manager.js +++ b/src/utils/popup/popup-manager.js @@ -18,7 +18,8 @@ const getModal = function() { event.stopPropagation(); }); - modalDom.addEventListener('click', function() { + modalDom.addEventListener('click', function(event) { + event.stopPropagation(); PopupManager.doOnModalClick && PopupManager.doOnModalClick(); }); }