Closed Vilican closed 1 month ago
I fixed your stackblitz: https://stackblitz.com/edit/vitejs-vite-pcxo9u?file=src%2FApp.tsx
The docs need to be updated. The active
flag is only use in controlled mode when used with onToggle
.
const active = props.onToggle ? props.active : activeState;
I will add a showcase example for this. Thanks for reporting!
Describe the bug
active
property does not work - changes are not reflected in the componentReproducer
https://stackblitz.com/edit/vitejs-vite-vnppvc?file=src%2FApp.tsx
System Information
Steps to reproduce the behavior
Expected behavior
No response