This was reported before in this thread:
So it is probably not your fault.
So far the good news. Unfortunately I didn’t manage to reproduce the issue.
I am testing the develop branch and the SignalGenerator example used the ToggleButtons that are most likely at fault. However it is working in Logic and as Standalone.
I think it is some kind of update feedback loop, which only creates an error in debug mode. But it is still annoying.
In the main branch, I traced it down to setToggleState() sending bogus mouse clicks. I am not sure if that is still the case. I spent a day trying to reproduce it in a juce only project, but couldn’t verify my hypothesis…