Open ceptoplex opened 2 months ago
Having the same issue.
Having the same issue. Reverting this change helps. I don't think it's a chrome problem though because chrome handles this as expected: data-[disabled=true]: only triggers when disabled is set to true data-[disabled]: triggers if disabled is set to any value
For some reason the intention was to just check if the data-disabled attribute is set at all, ignoring its value.
I don't know why I modified the corresponding class according to the appeal method to work normally.
i have the same issue.
when use command components like this way:
web page response: disable components, mouse hover isn't work.
remove ui/command.tsx code: "data-[disabled]:pointer-events-none data-[disabled]:opacity-50" it's working!
dependencies list: "tailwindcss": "^3.4.1", "cmdk": "^1.0.0", "@radix-ui/react-alert-dialog": "^1.1.1", "@radix-ui/react-aspect-ratio": "^1.1.0", "@radix-ui/react-dialog": "^1.1.1", "@radix-ui/react-dropdown-menu": "^2.1.1", "@radix-ui/react-label": "^2.1.0", "@radix-ui/react-popover": "^1.1.1", "@radix-ui/react-separator": "^1.1.0", "@radix-ui/react-slot": "^1.1.0", "@radix-ui/react-switch": "^1.1.0", "@radix-ui/react-toast": "^1.2.1",
Describe the bug
With the recent changes coming in from #4181, the CSS classes specified for
CommandPrimitive.Item
have changed: https://github.com/shadcn-ui/ui/blob/c8ad3c26d267d3d1e052d0d4899c0af28967fd31/apps/www/registry/default/ui/command.tsx#L120The problematic change is going from
to
which is not picked up correctly for me in Chrome Version 126.0.6478.127 (arm64) on MacOS. I haven't looked through the rest of the PR but the name suggests it focuses on Charts, so seeing such changes included to the Command, I think there is a risk of similar changes/issues in other parts as well.
Affected component/components
Command (i.e., Command, Combobox, etc.)
How to reproduce
Expected: Command Items should be selectable with a cursor Actual: Command Items items are always greyed out and no longer selectable with a cursor
Codesandbox/StackBlitz link
No response
Logs
No response
System Info
Before submitting