carlosrovira commented on issue #1074:
URL: https://github.com/apache/royale-asjs/issues/1074#issuecomment-776079383


   First case is right. By default, if you don't set any other selection, 
selectedIndex will be 0.
   Second is right too. Selecting second button will make selectedInex = 1
   But something is wrong with third case. I think you are missing new CSS (the 
same as some days ago) since you should not be able to unselect a selected 
button (unless you have toggleOnClick=true).
   In that config all is ok from my side.
   The problem is if I set "toggleOnClick=true", then I can unselect a selected 
button, and as Flex docs says, it must set the selectedIndex = -1. That's the 
thing I need to implement.
   
   So in short,  I think you are missing this CSS chunk:
   
   ```sass
   .jewel.buttonbar
       &.toggle-on-click
           .jewel.togglebutton
               &.selected
                   pointer-events: none
   ```
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to