From c57e6b7f81a5796395c7a016d6b1b2aac9591973 Mon Sep 17 00:00:00 2001 From: Paco <34928425+pacocoursey@users.noreply.github.com> Date: Mon, 29 Jan 2024 20:55:23 -0800 Subject: [PATCH] fix #83 --- cmdk/src/index.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmdk/src/index.tsx b/cmdk/src/index.tsx index 59008a1..dc29649 100644 --- a/cmdk/src/index.tsx +++ b/cmdk/src/index.tsx @@ -674,7 +674,7 @@ const Item = React.forwardRef((props, forwardedRef) = if (!render) return null - const { disabled, value: _, onSelect: __, forceMount: ___, ...etc } = props + const { disabled, value: _, onSelect: __, forceMount: ___, keywords: ____, ...etc } = props return ( ((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} >