bug: When items are added to the <Command/>
while searching items are not rendered as expected
#1044
Labels
bug
Something isn't working
has workaround
A workaround has been identified to alleviate the bug until it is fixed.
Describe the bug
Comes from huntabyte/shadcn-svelte#1562
From what I can tell is that since the item hasn't been added to the DOM yet there is no ref and because there is no ref the value isn't set and when the value isn't set the filter items doesn't include the item and then shouldRender is left false preventing you from rendering the item. This is why as soon as you remove the search input it renders with no issues.
A workaround is to just set
shouldFilter
to false on the<Command.Root/>
component and do your own filtering.repro.mp4
Reproduction
https://github.com/ieedan/bits-ui/tree/command-troubleshooting
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: