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 required attribute works wrong when multiple is enabled #2741

Open
projct1 opened this issue Nov 23, 2024 · 0 comments
Open

UInputMenu required attribute works wrong when multiple is enabled #2741

projct1 opened this issue Nov 23, 2024 · 0 comments
Labels
bug Something isn't working triage 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' }])
</script>

<template>
  <form class="flex flex-col gap-2 max-w-54" @submit.prevent>
    <UInputMenu name="places"
                v-model="places"
                :items="placeItems"
                value-key="id"
                label-key="name"
                icon="i-lucide-search"
                class="w-full"
                required
                multiple/>
    
    <UFormField class="mt-2">
      <UButton type="submit" class="block w-full">Submit</UButton>
    </UFormField>
  </form>
</template>

Description

Even if i choosen some items, i cant submit form https://skr.sh/vSqGuOWV8dZ

@projct1 projct1 added bug Something isn't working triage v3 #1289 labels Nov 23, 2024
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 v3 #1289
Projects
None yet
Development

No branches or pull requests

1 participant