SAP / ui5-webcomponents

UI5 Web Components - the enterprise-flavored sugar on top of native APIs! Build SAP Fiori user interfaces with the technology of your choice.
https://sap.github.io/ui5-webcomponents/
Apache License 2.0
1.55k stars 266 forks source link

ui5-shellbar: menuPopover is undefined #4714

Closed JarrettChan closed 2 years ago

JarrettChan commented 2 years ago

Bug Description

If the _handleResize is never triggered, then this.menuPopover is never initialized, and when clicking an item in the menu it fails on this.menuPopover.close(). The menuPopover does not close and the expected action is not triggered. The overflowPopover is probably also affected, but not reproducible on the same page because it has a min-width.

This occurs most of the time on one of our pages.

Expected Behavior

Consistent access to menuPopover and overflowPopover.

Steps to Reproduce

  1. SuccessFactors Compensation page in qa env
  2. Open menuPopover
  3. Click item Observe: nothing happens

Context

Priority

The priority indicates the severity of the issue. To set the appropriate priority consider the following criteria:

Note: The priority might be re-evaluated by the issue processor.

Stakeholder Info (if applicable)

ilhan007 commented 2 years ago

Hello @JarrettChan please provide clear reproducible steps, ideally with pure ui5 web components, using the CodeSandbox https://codesandbox.io/s/71r1x5o51q or at least providing url to the page (if internal information is required - you can use the private Slack channel)

JarrettChan commented 2 years ago

@ilhan007 I have added reproduction steps to the private Slack channel. https://sap-successfactors.slack.com/archives/CTHEMAZ8C/p1644428265547629

MapTo0 commented 2 years ago

Since the issue could not be reproduced anymore I am closing the issue.

Regards, Martin