-
Notifications
You must be signed in to change notification settings - Fork 764
USelectMenu create-item="always" not working #3949
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
Comments
I just tried the |
https://codesandbox.io/p/devbox/dawn-wind-hdn7pj How i can create new item "Appl"? According to documentation:
So, in my example, similar values exist (starts with "Apple"), but creat option |
Thanks for the reproduction, I found the issue 😊 BTW unrelated to the issue but here's another approach to implement debounce search: <script setup lang="ts">
const q = ref('')
const qDebounced = refDebounced(q, 250)
const { data: items, status } = await useFetch('https://dummyjson.com/products/search', {
params: {
q: qDebounced
},
transform: (data) => {
return data.products
},
lazy: true
})
...
</script> |
Oh, thanks, that looks concise) |
By the way, how i can trigger fetch only if query length > 1? |
@benjamincanac Hey, i guess we don't need to show the create item if the dropdown already has exactly the item we want, otherwise we'll create a duplicate? Updated: https://codesandbox.io/p/sandbox/dawn-wind-hdn7pj |
Uh oh!
There was an error while loading. Please reload this page.
Environment
Is this bug related to Nuxt or Vue?
Nuxt
Version
Nuxt UI version 3.0.2
Reproduction
Description
I want to create new category "Des", but cant, because i found "Deserts".
Option
create-item="always"
ignored.Demonstration: https://skr.sh/vVFQ3lvSifh
The text was updated successfully, but these errors were encountered: