-
-
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] - Disabled checkboxes in selectable table do not behaves as expected #3544
Comments
@wingkwong can u please assign this issue to me? I will try to solve |
it has a linked pr so iam gonna look for other issue |
oh yes. sorry didn't see it when i assigned. |
also, when we placing the text input inside selectable row, we can't type in this input. Can we disable the 'selectOnRowClick' feature? |
navigation text in input/textarea (in table) is not support |
Is this thread still alive ? No activity here. |
@TarasVasylivskyy it has linked pr |
I see, but this PR is stuck there. |
Reproducible examplesSimplest:https://codesandbox.io/p/devbox/youthful-pine-9qlhqm Complete:Also, there's an example on documentations showing an interactive Dropdown component. Things get even crazier if you uncomment the Switch and Checkbox. |
Probably related to #2324 |
Probably need to create an another BUG related to inputs, or some general related to inputs and checkboxes. If @GoulartNogueira can, please do, or i will do it tomorrow. |
Hey guys! Does anyone have a workaround we can use while the PR is being reviewed? I have the same problem, but using a Switch in my table in selectionMode="multiple". As mentioned here, it seems to be related to the tailwind group class name feature. No matter if the Switch is read-only or disabled, the animation still triggers, although the switch "onValueChange" events are not fired. |
The solution in the linked PR is not correct. As discussed with him in private, I'll take over the fix. |
@wingkwong brother, 我的pr还能提交不 0 0 |
@komagic it's fixed already and we'll have a release today. |
Reopening - the PR includes breaking changes. Now it's rescheduled to v.2.5.0. |
NextUI Version
2.4.6
Describe the bug
When I use a
<Table>
with a non-undefinedselectionMode
, all the checkboxed withisDisabled
orisReadonly
switch state when clicking on a table row.Here is athe code of my simple component:
Your Example Website or App
https://github.com/nbusser/nextui-issue-checkbox-tables
Steps to Reproduce the Bug or Issue
pnpm i
npm run dev
localhost:3000
Expected behavior
As a user, I expect being NOT able to change the state of a disabled/readonly checkbox within a table
Screenshots or Videos
nextui-bug.mp4
Operating System Version
macOs
Browser
Firefox
The text was updated successfully, but these errors were encountered: