-
Notifications
You must be signed in to change notification settings - Fork 624
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
[Select-Menu] Empty value placeholder logic is broken #2353
Comments
Also say I have this object that I want to use for the v-model, because not every value is string in real world: If I do this:
I get this type error(and no placeholder):
Instead if I do this:
I get this:
It's not very realistic or optimal but let's use 'label' instead of name as types complain(we can maybe use https://ui3.nuxt.dev/components/select-menu#value-key instead? Is that what this is for?):
No errors! But no placeholder as well: Docs
|
Environment
Version
v3.0.0-alpha.6
Reproduction
Cannot use v3 on stackblitz so no repo.
Description
When value is empty string placeholder doesn't show.
This doesn't happen with input-menu. Gonna use that for now.
It only show when there is nothing(undefined):
const value = ref();
which doesn't work well with types and is not really realistic.Also it with 'null' it breaks:
TypeError: Cannot read properties of null (reading 'label')
It should use placeholder when:
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: