Toolbar buttons never send click events

I override the

        void buttonClicked(juce::Button* buttonThatWasClicked) {
        }

inside the component that holds the toolbar but I never get click events for the toolbar buttons. What’s happening???

Did you add the listener to the button?

yourButton.addListener (this);

Rail