You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our product is creating multiple CursorMenuItemProps that are being sent to UiFramework.openCursorMenu. We are in the process of upgrading deprecated properties, one of which is adjusting icons that utilize IconSpec. Upon changing the objects to use iconNode instead (which is the recommended action), the cursor menu that is generated no longer shows any icons. It seems that the logic that is kicked off by openCursorMenu (which appears to be createMenuItemNode in MenuItem.tsx) ignores the new iconNode property.
To Reproduce
Create CursorMenuItemProps and assign the icon object to the "icon" property. On opening the cursor menu, the icons should appear.
Change the "icon" property of those CursorMenuItemProps to "iconNode". On opening the cursor menu, the icons are missing.
Expected Behavior
Making objects with iconNode should cause the icons to appear in the cursor menu.
Screenshots
No response
Desktop (please complete the applicable information)
AppUI 5.0.5
Win11, Edge 132.0.2957.140
Additional context
While the main issue is with UiFramework.openCursorMenu, this issue may apply to other methods as well; I believe that some action item helpers were still returning properties of type IconSpec as well.
The text was updated successfully, but these errors were encountered:
Describe the bug
Our product is creating multiple CursorMenuItemProps that are being sent to UiFramework.openCursorMenu. We are in the process of upgrading deprecated properties, one of which is adjusting icons that utilize IconSpec. Upon changing the objects to use iconNode instead (which is the recommended action), the cursor menu that is generated no longer shows any icons. It seems that the logic that is kicked off by openCursorMenu (which appears to be createMenuItemNode in MenuItem.tsx) ignores the new iconNode property.
To Reproduce
Expected Behavior
Making objects with iconNode should cause the icons to appear in the cursor menu.
Screenshots
No response
Desktop (please complete the applicable information)
AppUI 5.0.5
Win11, Edge 132.0.2957.140
Additional context
While the main issue is with UiFramework.openCursorMenu, this issue may apply to other methods as well; I believe that some action item helpers were still returning properties of type IconSpec as well.
The text was updated successfully, but these errors were encountered: