Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable. Open Source.
70.53k
stars
4.23k
forks
source link
[bug]: Redundant activation issues during "CommandItem" component mouseover #4417
Open
NINE-J opened 2 months ago
Describe the bug
Issue
A key unique to the component was passed, but the problem was identified that it was activated at the same time if the internal content was the same.
Affected Properties: aria-disabled, data-selected
I added one hidden span to solve this issue. In my case, id was a string that was released anyway, so it was okay.
If there is a better way, please share it.
Redundant activation
Fix
p.s I tried to search for similar cases.
Next.js Shadcn-ui CommandItem duplicate activation Next.js Shadcn-ui CommandItem hover issue Shadcn-ui CommandItem text collision hover problem
Affected component/components
Command
How to reproduce
Same as above.
Codesandbox/StackBlitz link
No response
Logs
No response
System Info
Before submitting