nuxt / ui

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

USelect change the type of a option's value #1897

Open NanamiNakano opened 1 week ago

NanamiNakano commented 1 week ago

Environment

Version

v2.17.0

Reproduction

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

Description

USelect component will change the type of a option's value to string. telegram-cloud-photo-size-1-5163492104129850790-y

Additional context

No response

Logs

No response

NanamiNakano commented 1 week ago

Addendum: I found that the .number modifier solves this problem. But I don't think the component should need to rely on modifier handling. And it doesn't make mixed-type options work either.