Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(SelectMenu): handle async search #426

Merged
merged 2 commits into from
Jul 18, 2023
Merged

Conversation

mcastagnetti
Copy link
Contributor

Resolves #384

Add the possibility to set a searchFunction as prop to allow the user to have complete control of the way options are filtered.

This function can be either synchronous or asynchronous.

Let me know what you think 🙂

image

@nuxt-studio
Copy link

nuxt-studio bot commented Jul 18, 2023

Live Preview ready!

Name Edit Preview Latest Commit
ui Edit on Studio ↗︎ View Live Preview ec6b341

@vercel
Copy link

vercel bot commented Jul 18, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
ui ✅ Ready (Inspect) Visit Preview Jul 18, 2023 0:19am

@mcastagnetti mcastagnetti changed the title Add search function prop to SelectMenu.vue feat(select-menu): search function prop to SelectMenu.vue Jul 18, 2023
@mcastagnetti mcastagnetti changed the title feat(select-menu): search function prop to SelectMenu.vue feat(select-menu): add async search function prop Jul 18, 2023
@benjamincanac benjamincanac changed the title feat(select-menu): add async search function prop feat(SelectMenu): add async search function prop Jul 18, 2023
Copy link
Member

Hello!

Thanks for your PR! I've made a few adjustments so the function can be passed directly to the searchable prop. Let me know what you think!

@mcastagnetti
Copy link
Contributor Author

mcastagnetti commented Jul 18, 2023

Thanks! The way you did is even simpler, I like it 🙂

@benjamincanac benjamincanac changed the title feat(SelectMenu): add async search function prop feat(SelectMenu): handle async search Jul 18, 2023
@benjamincanac benjamincanac merged commit 5f8fe85 into nuxt:dev Jul 18, 2023
1 check passed
@mcastagnetti mcastagnetti deleted the pr/384 branch July 18, 2023 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[SelectMenu] Support for async search
2 participants