Open nbusser opened 1 month ago
@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
@TarasVasylivskyy it has linked pr
I see, but this PR is stuck there.
https://codesandbox.io/p/devbox/youthful-pine-9qlhqm
Notice on mode=none
, the input works as expected.
On mode=single
or multiple
, you can't select the input field.
Also, there's an example on documentations showing an interactive Dropdown component. Here's another example showing how the Dropdown works perfectly, but the input doesn't: https://codesandbox.io/p/devbox/mutable-wildflower-mljtqm
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.
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
https://github.com/user-attachments/assets/334dde76-96d3-44f2-8208-d9a88edd4336
Operating System Version
macOs
Browser
Firefox