Setting of active menu item for NavigationMenu does nothing

When an active navigation menu item is set via navigationMenu.set({active:...} nothing actually happens, the active item is not applied to the app menu. It feels like the active item is detected by app URL automatically and manual setting of “active” item is ignored.

Happens on the latest @shopify/app-bridge:3.7.10, and on previous versions as well.

Links to existing opened issues in Github and Community:

1 Like

Hey @Siarhei_Karavai - thanks for sharing that Github link and for flagging this. Are you seeing the same issue as described there where the menu item isn’t showing up at all? Just wanted to confirm - generally, opening up a Github issue is a quick way to get things looked at, but I can dig into this as well after I hear back from you.

Happy to investigate further.

Menu items are showing up, but manual actiavtion does nothing. Bridge detects the active menu item automatically and ignores explicit settings

opening up a Github issue is a quick way to get things looked at

I’d expect this, yes :slight_smile: But that issue is 2 weeks old with no responses

Hey @Siarhei_Karavai - thanks for clarifying here! Happy to dig into this further and see if we can get it resolved. Would you be able to share a brief screen recording showing this behaviour in action, along with a small code snippet of how you’re implementing the navigationMenu.set({active:...}) call?

I can take a look to see if we can narrow down exactly what’s happening and potentially identify a workaround/look into this further internally for you.