nuxt / ui

A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.
https://ui.nuxt.com
MIT License
3.57k stars 420 forks source link

USelectMenu: set unwanted value on close when `searchable` prop is enabled. #1923

Open emavitta opened 1 week ago

emavitta commented 1 week ago

Environment

Version

v2.17

Reproduction

https://stackblitz.com/edit/nuxt-starter-6pitx9?file=package.json

Description

When searchable is enabled, if i open the select and then close it without choosing anything, it sets the first value as selected. It may not be the intended behaviour, if it's not, i'd like to look into it.

Additional context

No response

Logs

No response

P-MikhalevID commented 2 days ago

The bug can be reproduced on the components page. Here's a GIF for reference.

select-menu bug