Skip to content

Conversation

@hinzzx
Copy link
Contributor

@hinzzx hinzzx commented Apr 20, 2023

When a ui5-menu-item is marked as disabled, and it is the first item within a sub-menu, the sub-menu is automatically closed. This is because when the mouse pointer moves over the sub-menu, it cannot interact with the first disabled item, which triggers the sub-menu to close.

Before

2023-04-20_12-42-07

After

2023-04-20_12-41-36

Fixes: #6925 , #6709

@hinzzx hinzzx changed the title fix(ui5-menu): fix sub-menu closing if disabled and being first item fix(ui5-menu): fix sub-menu closing first item is disabled Apr 20, 2023
@hinzzx hinzzx changed the title fix(ui5-menu): fix sub-menu closing first item is disabled fix(ui5-menu): fix sub-menu closing if the first item is disabled Apr 20, 2023
@tsanislavgatev tsanislavgatev self-requested a review April 20, 2023 13:41
Copy link
Contributor

@tsanislavgatev tsanislavgatev left a comment

Choose a reason for hiding this comment

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

Removing the pointer events gives the disabled items options to be clicked and the text to be marked. This interactions are not wanted in disabled items.

@hinzzx
Copy link
Contributor Author

hinzzx commented Apr 21, 2023

Hello colleagues,

This issue seems to be fixed within this change - link. Threfore I am closing this Pull Request.

@hinzzx hinzzx closed this Apr 21, 2023
@hinzzx hinzzx deleted the subMenu-disabled-fix branch April 22, 2023 07:06
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.

[Menu/MenuItems]: Issues with SubMenu

3 participants