Comments (5)
Should be resolved by changing the disabled related classes within CommandItem
Before:
data-[disabled]:pointer-events-none data-[disabled]:opacity-50
After:
disabled:pointer-events-none disabled:opacity-50
Example.
const CommandItem = React.forwardRef<
React.ElementRef<typeof CommandPrimitive.Item>,
React.ComponentPropsWithoutRef<typeof CommandPrimitive.Item>
>(({ className, ...props }, ref) => (
<CommandPrimitive.Item
ref={ref}
className={cn(
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground disabled:pointer-events-none disabled:opacity-50",
className
)}
{...props}
/>
))
from ui.
Downgrading to "cmdk": "^0.2.1"
works.
from ui.
Also related #3024
from ui.
Same issue here!
from ui.
Should be resolved by changing the disabled related classes within
CommandItem
Before:
data-[disabled]:pointer-events-none data-[disabled]:opacity-50
After:
disabled:pointer-events-none disabled:opacity-50
Example.
const CommandItem = React.forwardRef< React.ElementRef<typeof CommandPrimitive.Item>, React.ComponentPropsWithoutRef<typeof CommandPrimitive.Item> >(({ className, ...props }, ref) => ( <CommandPrimitive.Item ref={ref} className={cn( "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground disabled:pointer-events-none disabled:opacity-50", className )} {...props} /> ))
It fixes my problem. Thanks a lot!
from ui.
Related Issues (20)
- [bug]: CommandItem not updating on asynchronous changes HOT 1
- [bug]: Install behind corporation proxy
- [feat]: Switches with icons HOT 2
- [bug]: charts needs improvements in vue HOT 2
- [bug]: Default styles are not applied when using Remix + Vite. HOT 1
- [feat]: an easy way to override text size for components HOT 1
- new component for loader and to create a sign up block with an image (lift mode) HOT 1
- [bug]: React 19 forwardRef warnings HOT 4
- [bug]: ComboBox component not working in Shadcn Website HOT 8
- [bug]: Combobox example breaks on https://ui.shadcn.com/docs/components/combobox HOT 1
- [bug]: data-table pagination breaks with React Compiler
- [bug]: ComboBox > Form preview breaks the site. HOT 3
- [bug]: No accordion animation when `value` is controlled via state
- [bug]: Todays date is not showing when not selected. HOT 1
- [bug]: Data Table headless UI redirect not working
- [bug]: FIX( documentation url): fix url in data-table documentation in mdx file
- [bug]: Tutorial missing steps
- [bug]: Calendar focus foreground color wrong when project setup
- Bug : Incorrect Hover Color for ContextMenuContent
- Can't click after a route push or route replace when an onboarding action in a dialog HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ui.