ComboBox onChange callback problem

Hi, I have a ComboBox as part of a side panel. I have assigned a lambda function to the onChange callback that toggles another element from invisible to visible. Like so:

sliderStyleMenu.onChange = [this] { sliderStyleMenuChanged(); };
void SidePanelList::sliderStyleMenuChanged()

It all works as expected, except when I first open the side panel. That is apparently triggering the callback, even though the user has yet to change anything in the combobox. I’m guessing the opening of the side panel triggers this somehow, but I’m not sure where or how to fix it. Any tips or suggestions would be much appreciated!

are you perhaps using [comboBox].setSelectedId();