You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here's a sample video when the above program is run:
rset.mp4
Is there a way to prevent the RadioButtons from animating in the second case (the RadioSet with true/false choices)?
For my actual use case, I need to dynamically add/remove existing RadioButtons from a RadioSet (the number of RadioButtons vary, need to show a pre-selected choice if applicable, change styling, etc - which is why I'm using mount).
The text was updated successfully, but these errors were encountered:
I found that using border: none; prevents the expansion animation. I'd now actually prefer if nothing is changed to the current behavior of using mount compared to the normal behavior of RadioSet.
Hi @learnbyexample ,
In the source for Radioset you have some processing for the buttons here.
The flickering has to do with the fact that the RadioButtons can have focus.
If initialized with the buttons directly this doesnt happen, i.e. btn.can_focus = False is set.
I just tested it with your example, If you adjust that, the flickering doesnt occur:
Discussed in #5213
Originally posted by learnbyexample November 6, 2024
Here's a sample program:
Here's a sample video when the above program is run:
rset.mp4
Is there a way to prevent the RadioButtons from animating in the second case (the RadioSet with true/false choices)?
For my actual use case, I need to dynamically add/remove existing RadioButtons from a RadioSet (the number of RadioButtons vary, need to show a pre-selected choice if applicable, change styling, etc - which is why I'm using
mount
).The text was updated successfully, but these errors were encountered: