How to prevent combobox selection dismissing popup menu

I have a combobox inside a popup menu and when you open the popup, click on the combobox and click on the drop down to select an item it immediately closes the popup.

Is there any way to prevent this as ideally the popup should only close if you click outside itself.





Putting a ComboBox in a PopupMenu is a pretty strange thing to do! I wouldn't say that it's unexpected for it to close when you click on the drop-down, because as far as the menu is concerned, you are clicking on a different window - it has no way to know that you expect the combo-box to somehow be treated as part of the menu. And I can't think of anything that could easily be changed to make it do that..


In my application there is a button in the popup menu which causes the analysis of a breathing signal over a number of previous seconds and the combobox allows you to select the time interval from 1 to 10.

I understand why this behaviour is not an easy thing to change and that is fine I just wanted to be sure that I wasn't missing something obvious.

Thank you! JUCE is a top class creation by the way!