nextui
nextui copied to clipboard
[BUG] - Switch component inside of table is trigger when a row is selected
NextUI Version
2.3.6
Describe the bug
I have a products table:
When the switch is set active, there's no problem when selecting the row, however when the switch is inactive whenever I select the row it toggles the switch. scrnli_5_7_2024_10-32-43 AM.webm
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
- Create a table component
- Add a Switch component to the row
- Set it active on page load using useState
- Click on the row - nothing will happen.
- Toggle it to inactive
- Click on the row and it will toggle with the row selection
Expected behavior
I expected it to not change on row selection no matter what the state of the switch is but what I'm seeing is a change.
Screenshots or Videos
No response
Operating System Version
Windows
Browser
Chrome
Reopening - the PR includes breaking changes. Now it's rescheduled to v.2.5.0.
@wingkwong Hi, when do you release a new version to fix this issue?
Next release will include lots of changes. we plan to release some beta versions first. hopefully next month.