Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ui5-shellbar): allow prevent default 'menu-item-click' action #8172

Merged
merged 2 commits into from
Jan 25, 2024

Conversation

kineticjs
Copy link
Contributor

The ui5-shellbar component now allows the app to prevent the default action of the 'menu-item-click' event

Fixes #8149

@kineticjs kineticjs marked this pull request as ready for review January 25, 2024 08:16
@@ -321,6 +325,10 @@ <h3>ShellBar in Compact</h3>
sbAccRoles.accessibilityRoles = {
logoRole: "link"
};

menuItemsPreventDefaultOnClick.addEventListener("ui5-menu-item-click", function(event) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This assignment seems redundant.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Removed now..

@kineticjs kineticjs merged commit d16efb6 into SAP:main Jan 25, 2024
8 checks passed
tsanislavgatev pushed a commit that referenced this pull request Feb 20, 2024
)

* fix(ui5-shellbar): allow prevent default 'menu-item-click' action

* fix(ui5-shellbar): remove recundant code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ShellBar]: e.preventDefault() on "menu-item-click" event does not prevent closing of overflow popover
2 participants