Originally reported by @vonnyw
Describe the bug
When an application menu is open below the mobile breakpoint threshold, and one of its accordion headers is clicked, the menu is closing unexpectedly -- even if the dismissOnClickMobile setting is set to false.
To Reproduce
Steps to reproduce the behavior:
The Application menu is unexpectedly closing.
Expected behavior
The Application menu should remain open.
Videos
See the webm file here for a video displaying the issue:
application-menu-close-premature.webm.zip
Platform(s) n/a
Additional context
After some troubleshooting we discovered that the first condition on [this line] (https://github.com/infor-design/enterprise/blob/master/src/components/applicationmenu/applicationmenu.js#L430) in the App Menu is showing e.target being the body tag. This value should be represented as an a or .accordion-header element, and should not the body tag. Possible things to check:
pointer-events: none; CSS rule on something inside the app menu where it shouldn't be? I'm also running into this same issue while conducting smoke testing.
@clepore @theakatz due to the critical tag, should we add this one to the July sprint for fixing? I might be able to track it down and get it fixed today.
Yes we think so
Caused by https://github.com/infor-design/enterprise/commit/9e624892bdf20db81c369072406337952677bc4a#diff-75bb29fcad7b97e804de3fd00e8252d6R1393
Passed QA testing on all browsers.
Environment: http://490-rc1-sohoxi.demo.design.infor.com/components/applicationmenu/example-container.html
Closing this, it's landed in 4.9.0