-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] - Multiple Selection of the table #2324
Comments
I'm also having the same problem, it only happens when multiple selection is activated, for single selection this doesn't happen. |
The same thing happens with Switch component. Any updates on this? |
I've faced similar issue today but on It would be great if we can specify group name to prevent this multiple nesting group bug. <Switch groupName="switch" /> // it would replace group to group/switch While fixing the bug i guess we can replace the default style like below <Switch
classNames={{
base: ['group/switch'],
wrapper: [
'w-14 bg-[#969696]',
'group-data-[selected=true]:bg-[#969696]',
'group-data-[selected=true]/switch:bg-success',
],
thumb: [
'group-data-[selected=true]:ml-0',
'group-data-[selected=true]/switch:ml-7',
'group-data-[selected=true]/switch:group-data-[pressed=true]:ml-7',
],
startContent: [
'text-xs text-white',
'group-data-[selected=true]:scale-none',
'group-data-[selected=true]:opacity-none',
'group-data-[selected=true]/switch:scale-100',
'group-data-[selected=true]/switch:opacity-100',
],
endContent: [
'text-xs text-white',
'group-data-[selected=true]:opacity-1',
'group-data-[selected=true]:translate-x-0',
'group-data-[selected=true]/switch:opacity-0',
'group-data-[selected=true]/switch:translate-x-3',
],
}}
color="success"
startContent={<span>ON</span>}
endContent={<span>OFF</span>}
/> But it's too much work i hope this bug will be resolved soon. |
Hey! Thanks for explaining the issue and coming up with this workaround. I have tried your solution but it does not entirely work for me (the switch becomes impossible to toggle). I'm curious to know if you came up with another workaround that you could share? |
Reopening - the PR includes breaking changes. Now it's rescheduled to v.2.5.0. |
NextUI Version
2.2.9
Describe the bug
Hi, I have a problem related to the selectionMode = "multiple" option of the table, what this does is to generate a checkbox to select multiple rows, but I have in my custom cells a radio button and a checkbox, of which if I press any checkbox of those that are generated by the option "multiple selection" these visually activate the checkbox or radio button in the table row, I checked that it was only visual and not that it was really making them check, but I do not see or I did not find way to make that event of click in the checkboxes not to affect to what I had on my customized cells of my table and prevent that situation.
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
Expected behavior
That the checkbox of the table can be controlled more thoroughly, and that in the components if I put custom cells a checkbox does not affect another one or a radius does not affect another one.
Screenshots or Videos
Operating System Version
Windows
Browser
Chrome
The text was updated successfully, but these errors were encountered: