We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Please help, I would like to add an item to my array when I click on one, at the moment, when I click on an item, all get selected, here is my code: `
<UModal v-model="isOpen"> <!-- Display the command palette --> <UCommandPalette @select="onSelectKeyword" v-model="selected" multiple nullable :groups="[{ key: 'items', commands: items }]" /> <!-- Input and button to add a new keyword --> <div class="mt-4"> <UInput v-model="newKeyword" placeholder="Enter a new keyword" class="w-full" /> <UButton @click="addKeyword" label="Add Keyword" color="green" class="mt-2" /> </div> <!-- Display the selected keyword --> <div v-if="selectedKeyword" class="mt-4 text-lg"> Selected Keyword: <span class="font-bold">{{ selectedKeyword }}</span> </div> </UModal>
`
The text was updated successfully, but these errors were encountered:
Did you specify an id in each of your items like on https://ui.nuxt.com/components/command-palette#usage? You can change this field through the by prop.
id
items
by
Sorry, something went wrong.
No branches or pull requests
Description
Please help, I would like to add an item to my array when I click on one, at the moment, when I click on an item, all get selected, here is my code:
`
`
The text was updated successfully, but these errors were encountered: