Skip to content

Conversation

knoxnoe
Copy link
Contributor

@knoxnoe knoxnoe commented Oct 10, 2022

2022-10-10.7.13.25.mov
<script lang="ts" setup>
import { ref } from 'vue'

const favoriteFruit1 = ref()
const favoriteFruit2 = ref()
const colors = ['primary', 'success', 'info', 'warning', 'danger']
</script>

<template>
  <div class="flex flex-col gap-y-3 mt-6">
    <h1>first group</h1>
    <ARadio
      v-for="color in colors"
      :key="color"
      v-model="favoriteFruit1"
      name="radio-color"
      :color="color"
      :value="color"
      :label="color"
      class="capitalize"
    />
    <h1>second group</h1>
    <ARadio
      v-for="color in colors"
      :key="color"
      v-model="favoriteFruit2"
      name="radio-color"
      :color="color"
      :value="color"
      :label="color"
      class="capitalize"
    />
  </div>
</template>

Maybe we could use like above? lt's behavior is werid? I don't know

@jd-solanki jd-solanki changed the title fix(radio): internal input elementId is not unique fix(radio): input id is not unique if same value is used twice Oct 11, 2022
@jd-solanki jd-solanki merged commit 0265d49 into jd-solanki:main Oct 11, 2022
@jd-solanki
Copy link
Owner

Thanks 😇

Are you using Anu in one of your projects?

@knoxnoe
Copy link
Contributor Author

knoxnoe commented Oct 11, 2022

not yet! But I like your UI design and I enjoy the process!

@jd-solanki
Copy link
Owner

oh great!

Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants