jd-solanki / anu

Anu - DX focused utility based vue component library built on top of UnoCSS & VueUse ⚡️🔥

Home Page:https://anu-vue.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[ASelect]: Component broken when initial value is undefined

IcetCode opened this issue · comments

commented

What is actually happening?

<script setup lang="ts">
const selectedFruit = ref()
const fruits = ['banana', 'apple', 'watermelon', 'orange']
</script>

<template>
  <ASelect :options="fruits"/>
</template>

ASelect is not rendered correctly when the modelValue is not passed or is undefined.

What is Expected?

should render correctly