-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
ASelect
shows value
when selected instead of text
#172
Comments
value
when selected instead of text
ASelect
shows value
when selected instead of text
Sorry I didn't get what you mean? Can you please mention what is expected and what's happening. |
I'm sorry for the confusion. From the docs: <script setup>
// ...
const frameworks = [
{ text: 'VueJS', value: 'vue' },
{ text: 'ReactJS', value: 'react' },
{ text: 'AngularJS', value: 'angular' },
{ text: 'SolidJS', value: 'solid' },
{ text: 'AlpineJS', value: 'alpine' },
]
</script>
<template>
<div class="grid-row sm:grid-cols-2 justify-items-stretch">
<!-- Framework -->
<ASelect
v-model="selectedFramework"
:options="frameworks"
:hint="`value: ${JSON.stringify(selectedFramework)}`"
/>
</div>
</template> If you select |
It's working as expected. I hope you got it. To give more details, Let me know if you have any further queries. |
Thank you for the response. How will I make it render the selected option as the I'm sorry for all the questions and if anything is confusing to what I'm trying to say since I'm relatively new to Vue/Nuxt. |
No worries. If you want it to display const frameworks = ['VueJS', 'HTML']
Yes, I fixed this in the latest commits but unfortunately docs isn't deploying due to a type error. I'm introducing generic components in the next update but I'm facing a roadblock ATM. As soon this is resolved docs will be updated with the fix. Additionally Thanks for your patience. |
I just used the example from the docs to explain the issue. But in my case, I need to render const categories = [
{ text: "Mall", value: 1 },
{ text: "Restaurant", value: 2 },
]; By the way, I know Anu is still not production ready, but I really like the DX and the UI style. Thank you for creating this library. |
Maybe adding |
Yes @IcetCode We have to do this for list & select both |
I also expected that |
Following the basic usage: https://anu-vue.netlify.app/guide/components/select.html#basic
It happens on the demo too.
The text was updated successfully, but these errors were encountered: