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
The ToggleGroup component on the blocks page stops working if you click the currently active toggle again.
This is because we pass an empty string to the parseInt function, when the value doesn't change.
Fixing only requires checking if there is a value.
See here in the radix documentation: https://www.radix-ui.com/primitives/docs/components/toggle-group#ensuring-there-is-always-a-value
Affected component/components
How to reproduce
Go to Blocks page
chose a size
click that size again
Codesandbox/StackBlitz link
No response
Logs
No response
System Info
Windows, Firefox/Chrome
Before submitting
I've made research efforts and searched the documentation
I've searched for existing issues
The text was updated successfully, but these errors were encountered:
Describe the bug
The ToggleGroup component on the blocks page stops working if you click the currently active toggle again.
This is because we pass an empty string to the parseInt function, when the value doesn't change.
Fixing only requires checking if there is a value.
See here in the radix documentation:
https://www.radix-ui.com/primitives/docs/components/toggle-group#ensuring-there-is-always-a-value
Affected component/components
How to reproduce
Codesandbox/StackBlitz link
No response
Logs
No response
System Info
Before submitting
The text was updated successfully, but these errors were encountered: