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

UInputMenu not triggering when remove items in multiple mode #2743

Closed
projct1 opened this issue Nov 23, 2024 · 2 comments · Fixed by #3054
Closed

UInputMenu not triggering when remove items in multiple mode #2743

projct1 opened this issue Nov 23, 2024 · 2 comments · Fixed by #3054
Labels
bug Something isn't working v3 #1289

Comments

@projct1
Copy link

projct1 commented Nov 23, 2024

Environment

Is this bug related to Nuxt or Vue?

Nuxt

Version

v3.14.1592

Reproduction

<script setup lang="ts">
const places = ref([])
const placeItems = ref([{ id: 1, name: 'Place 1' }, { id: 2, name: 'Place 2' }])

watch(places, (a, b) => alert('changed'))
</script>

<template>
<UInputMenu name="places"
            v-model="places"
            :items="placeItems"
            value-key="id"
            label-key="name"
            class="w-full"
            multiple />
</template>

Description

https://skr.sh/vSqMC30k7Rm

By the way, in non-multiple mode i cant remove value... https://skr.sh/vSqNhU5VYrM

@benjamincanac
Copy link
Member

@projct1 For the other issue you mentioned (not being to unselect values in non-multiple mode), this is the same behavior as Reka UI: https://reka-ui.com/docs/components/combobox

@projct1
Copy link
Author

projct1 commented Jan 9, 2025

@projct1 For the other issue you mentioned (not being to unselect values in non-multiple mode), this is the same behavior as Reka UI: https://reka-ui.com/docs/components/combobox

It is impossible to unselect selected?

@benjamincanac benjamincanac removed the triage label Jan 25, 2025 — with Volta.net
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v3 #1289
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants