I'm using Command and CommandList, CommandGroup, and CommandItem. I'm not sure I can replicate it since I do not know a way to mimic and server side call that would be accurate to how data structures are updated in my code.
We conduct a search based on the user query from the CommandInput and receive results from the server. When the results are rendered, the first result is set to disabled and the display is set to none. When the original search query is deleted from the CommandInput the first result is set to display. It seems very odd. We tried using v-model to bind to a ref with the currently selected value (whatever the first server response result is) but it doesn't have an effect.
From what I could figure from looking at ComboboxItem, there is some check being done to see if the searchFilter query is set to "" or if the current item is being returned by the filterFunction otherwise the item is set to disabled and not to display.
Reproduction
not set
Describe the bug
I'm using Command and CommandList, CommandGroup, and CommandItem. I'm not sure I can replicate it since I do not know a way to mimic and server side call that would be accurate to how data structures are updated in my code.
We conduct a search based on the user query from the CommandInput and receive results from the server. When the results are rendered, the first result is set to disabled and the display is set to none. When the original search query is deleted from the CommandInput the first result is set to display. It seems very odd. We tried using v-model to bind to a ref with the currently selected value (whatever the first server response result is) but it doesn't have an effect.
From what I could figure from looking at ComboboxItem, there is some check being done to see if the searchFilter query is set to "" or if the current item is being returned by the filterFunction otherwise the item is set to disabled and not to display.
System Info
Contributes