Skip to content

Commit

Permalink
Fix bug with backspacing (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
WITS authored Sep 1, 2023
1 parent 5c24283 commit 05199cb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cmdk/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -971,8 +971,11 @@ function useValue(
return part.trim().toLowerCase()
}

if (typeof part === 'object' && 'current' in part && part.current) {
return part.current.textContent?.trim().toLowerCase()
if (typeof part === 'object' && 'current' in part) {
if (part.current) {
return part.current.textContent?.trim().toLowerCase()
}
return valueRef.current
}
}
})()
Expand Down

1 comment on commit 05199cb

@vercel
Copy link

@vercel vercel bot commented on 05199cb Sep 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

cmdk-website – ./

cmdk-website-git-main-paco.vercel.app
cmdk-website-paco.vercel.app
cmdk.vercel.app
cmdk.paco.me

Please sign in to comment.