You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a use case where i need to filter by value and description for a particular option. so using the combobox i thought i could define a custom filterfn and pass it as a prop.
i can then do this and see that the results are being filtered correctly by either value or description:
const filteredOptions = options.filter(option => {
if (!filterFn) return true; // If no filter function provided, return true for all options
return filterFn(option, search);
});
but within the return all i get is the "No options found." How does the commandEmpty work in this component? Is there a default behavior there that needs to be reconfigured? Below is my return statement.`
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a use case where i need to filter by value and description for a particular option. so using the combobox i thought i could define a custom filterfn and pass it as a prop.
i can then do this and see that the results are being filtered correctly by either value or description:
but within the return all i get is the "No options found." How does the commandEmpty work in this component? Is there a default behavior there that needs to be reconfigured? Below is my return statement.`
Beta Was this translation helpful? Give feedback.
All reactions