You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by pi...@apache.org on 2021/10/26 06:23:52 UTC

[atlas] 02/02: ATLAS-4455: UI:#1 (New UI) Dropdown and pop-over menus overlap, fixed

This is an automated email from the ASF dual-hosted git repository.

pinal pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/atlas.git

commit f08003d136562f47ca93fe5b645cab2e235bb208
Author: prasad pawar <pr...@freestoneinfotech.com>
AuthorDate: Tue Oct 19 13:43:50 2021 +0530

    ATLAS-4455: UI:#1 (New UI) Dropdown and pop-over menus overlap,fixed
    
    Signed-off-by: Pinal Shah <pi...@freestoneinfotech.com>
---
 dashboardv3/public/js/utils/Helper.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dashboardv3/public/js/utils/Helper.js b/dashboardv3/public/js/utils/Helper.js
index 04d3882..a242098 100644
--- a/dashboardv3/public/js/utils/Helper.js
+++ b/dashboardv3/public/js/utils/Helper.js
@@ -82,8 +82,8 @@ define(['require',
     var getPopoverEl = function(e) {
         return $(e.target).parent().data("bs.popover") || $(e.target).data("bs.popover") || $(e.target).parents('.popover').length;
     }
-    $(document).on('click DOMMouseScroll mousewheel', function(e) {
-        if (e.originalEvent) {
+    $('body').on('click DOMMouseScroll mousewheel', function(e) {
+        if (e.target) {
             // Do action if it is triggered by a human.
             //e.isImmediatePropagationStopped();
             var isPopOverEl = getPopoverEl(e)
@@ -391,7 +391,7 @@ define(['require',
         });
     }
     //For closing the modal on browsers navigation
-    $(window).on('popstate', function(){
+    $(window).on('popstate', function() {
         $('body').find('.modal-dialog .close').click();
     });
 })
\ No newline at end of file