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
After updating PrimeReact from version 10.5.1 to 10.6.2 the InputSwitch component no longer registers clicks on the switch and as a result does not trigger an onChange event.
It also shows a visible checkbox behind the inputswitch. Checking the checkbox makes the switch change its state.
Can be demonstrated on the live documentation page: InputSwitch > Theming > A playground sample with the pre-built Tailwind theme.
I have forked it as a Stackblitz project.
Describe the bug
After updating PrimeReact from version 10.5.1 to 10.6.2 the InputSwitch component no longer registers clicks on the switch and as a result does not trigger an onChange event.
It also shows a visible checkbox behind the inputswitch. Checking the checkbox makes the switch change its state.
Can be demonstrated on the live documentation page: InputSwitch > Theming > A playground sample with the pre-built Tailwind theme.
I have forked it as a Stackblitz project.
Reproducer
https://stackblitz.com/edit/hbyv3s?file=src%2FApp.jsx
PrimeReact version
10.6.2
React version
18.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
Checkbox should be hidden. Clicking the switch itself should trigger the change event.
The text was updated successfully, but these errors were encountered: