ui icon indicating copy to clipboard operation
ui copied to clipboard

UInputMenu has wrong name attribute when multiple active

Open projct1 opened this issue 1 year ago • 2 comments

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>
<UInputMenu name="places"
            v-model="places"
            :items="placeItems"
            value-key="id"
            label-key="name"
            icon="i-lucide-search"
            class="w-full"
            multiple/>
</template>

Image

Description

Name attribute should be name[], not [name][].

projct1 avatar Nov 23 '24 20:11 projct1

I believe this behavior has completely changed in Reka UI, would you mind checking again? 😬

benjamincanac avatar Apr 08 '25 10:04 benjamincanac

Nope :)

Image

projct1 avatar Apr 08 '25 14:04 projct1

I do reproduce when using the Combobox component from Reka UI.

benjamincanac avatar May 10 '25 17:05 benjamincanac