-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(masthead): hide scroller buttons when there are no menuItems (#12059
) ### Related Ticket(s) [ADMCS-6215](https://jsw.ibm.com/browse/ADCMS-6215) ### Description This bug fix covers the edge case of the `l0Data` on the `<c4d-masthead-l1>` component being undefined or empty. ### Testing instructions * Open up the Masthead > With L1 story * Check off the "Use empty data for L1 menu items". This will employ an L1 dataset that does not have any `menuItems` defined. * The scroller buttons should be hidden ### Changelog **Changed** - Handle the edge case of the `l0Data` being `undefined`. <!-- React and Web Component deploy previews are enabled by default. --> <!-- To enable additional available deploy previews, apply the following --> <!-- labels for the corresponding package: --> <!-- *** "test: e2e": Codesandbox examples and e2e integration tests --> <!-- *** "package: services": Services --> <!-- *** "package: utilities": Utilities --> <!-- *** "RTL": React / Web Components (RTL) --> <!-- *** "feature flag": React / Web Components (experimental) -->
- Loading branch information
Showing
3 changed files
with
44 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters