Button::onclick is also called on the buttons of a group that automatically toggles to off

It took me a while to figure it out as I noticed that something weird was going on.

I think that this should not call to click automatically the button that toggles to off since onStateChange is available, but if it is not possible to avoid it, it should be warned in the documentation, that this function will not only be called on mouse click, but on all the buttons that toggle to off. If someone does not notice it, it could cause some unforeseen problem.

this can be solved by checking that the button is On. in case someone needs to know it

      button.onClick = [this] { 
          if (button.getToggleState()) {
              // button clicked to on
          else {
              // button toggled to off