I’ve been having issues with this and it appears to be in the Juce Demo as well. Simply go to the Widgets section and click the “click for a popup menu…” button, whenever you get rid of the menu, the button will be stuck in the last state it was in. When you mouse over the button or click on a different button it gets fixed. In my code I’m opening the menu in a buttonClicked function. When I call isMouseOver on my button after the menu closes, it returns false as expected, yet if I call repaint it doesn’t repaint.
It seems to be working now on buttons where setTriggerOnMouseDown (true), but if you’re triggering your popup menu with mouse up it will get stuck on mouseOver.
It’s quite subtle on the default look and feel but on my end it is definitely remaining in the wrong state. If I make a selection on the menu then mouse over the button, I will see no change in the button because it is already painted as mouse over. Moving out of the button will make it properly draw the mouse out state.