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

USelectMenu multiple count erro #2028

Open
Stiropor opened this issue Aug 8, 2024 · 3 comments · May be fixed by #2228
Open

USelectMenu multiple count erro #2028

Stiropor opened this issue Aug 8, 2024 · 3 comments · May be fixed by #2228
Labels
bug Something isn't working triage

Comments

@Stiropor
Copy link

Stiropor commented Aug 8, 2024

Environment



Version

v2.18.4

Reproduction

https://stackblitz.com/edit/nuxt-ui-gppwna?file=app.vue

Description

Using USelectMenu with multiple option having some preselected items returns count of 0. In reproduction link it should return 2.

Additional context

No response

Logs

No response

@Stiropor Stiropor added bug Something isn't working triage labels Aug 8, 2024
@ldiellyoungl
Copy link

hello. why don't you use this method?:

const options = [
  {
    key: 'id',
    label: 'ID',
  },
  {
    key: 'title',
    label: 'Title',
  },
  {
    key: 'status',
    label: 'Status',
  },
];

const selected = ref([options[0], options[1]]);

@Stiropor
Copy link
Author

Stiropor commented Aug 9, 2024

The selected gets filled on page load.
This counter was working for past 6 months at least, it stopped around 2 weeks ago, can't remember with which update.

@frasza
Copy link
Contributor

frasza commented Sep 22, 2024

Encountering same issue here where I want to update a list of selected item, I load the items and add them to v-model prop and it doesn't reflect it on the count

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants