[BUG] Can't change properties of flyout menu items that have submenus

If you have a flyout with submenus, items that have them, can’t be changed. In my case, I want to change the label. Programatically it shows changed, but in the UI, when you expand the flyout menu, it’s still the old label. No problems there with items inside that menu, but the holder itself fails to update in UI

const ep = require("uxp").entrypoints
const { menuItems } = ep.getPanel("panel1")
const item = menuItems.getItem("itemWithSubmenu")
console.log(item.label) // Old label
item.label = Math.random() + ""
console.log(item.label) // Random number - updated for normal items in UI, but stays the old on submenu holder

And this is not the only issue with flyout and submenus

I reported this exact problem in the prerelease forum not too long ago:

1 Like

It was investigated, there’s a discussion on the internal Slack…

I’m checking to see what version of Photoshop these issues may be fixed in. It looks like there’s some sort of fix in UXP 8.2.

2 Likes

We’re not so lucky after all… it’s PS-149774, with no fix yet.