pacocoursey / cmdk

Fast, unstyled command menu React component.
https://cmdk.paco.me
MIT License
10.01k stars 288 forks source link

Command.Dialog search function does not work as expected #40

Closed Beckem closed 2 years ago

Beckem commented 2 years ago

When type backspace filter results do not update. This issue also exists for example on https://cmdk.paco.me/

pacocoursey commented 2 years ago

Can you share a more specific example? Pressing [Backspace] completely works for me.

Beckem commented 2 years ago

Can you share a more specific example? Pressing [Backspace] completely works for me.

https://drive.google.com/file/d/10FZiUymNjKMUzKl8-zSZm-Sut0seKZSr/view?usp=sharing When press [Backspace] to "show" the filter result must appear like when you type show

pacocoursey commented 2 years ago

Hmm weird, will take a closer look.

manuthecoder commented 2 years ago

I also noticed this issue when trying to implement this in my web app

caumeira commented 2 years ago

Can you share a more specific example? Pressing [Backspace] completely works for me.

https://drive.google.com/file/d/10FZiUymNjKMUzKl8-zSZm-Sut0seKZSr/view?usp=sharing When press [Backspace] to "show" the filter result must appear like when you type show

I also noticed this issue when trying to implement this in my web app

Passing value prop to item fix the inssue for me: <Command.Item value="textValue">textValue</Command.Item>