Skip to content

Commit

Permalink
fix #83
Browse files Browse the repository at this point in the history
  • Loading branch information
pacocoursey committed Jan 30, 2024
1 parent 965ae21 commit c57e6b7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmdk/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ const Item = React.forwardRef<HTMLDivElement, ItemProps>((props, forwardedRef) =

if (!render) return null

const { disabled, value: _, onSelect: __, forceMount: ___, ...etc } = props
const { disabled, value: _, onSelect: __, forceMount: ___, keywords: ____, ...etc } = props

return (
<Primitive.div
Expand All @@ -683,10 +683,10 @@ const Item = React.forwardRef<HTMLDivElement, ItemProps>((props, forwardedRef) =
id={id}
cmdk-item=""
role="option"
aria-disabled={disabled || undefined}
aria-selected={selected || undefined}
data-disabled={disabled || undefined}
data-selected={selected || undefined}
aria-disabled={Boolean(disabled)}
aria-selected={Boolean(selected)}
data-disabled={Boolean(disabled)}
data-selected={Boolean(selected)}
onPointerMove={disabled || context.disablePointerSelection ? undefined : select}
onClick={disabled ? undefined : onSelect}
>
Expand Down

0 comments on commit c57e6b7

Please sign in to comment.