konstaui / konsta

Mobile UI components made with Tailwind CSS
https://konstaui.com
MIT License
3.52k stars 131 forks source link

[Bug] Vue: Segmented Control :active not working with v-for #49

Closed KRKnet closed 2 years ago

KRKnet commented 2 years ago

When using v-for with Segmented Buttons the prop for active is showing up correctly, but the visuals do not show any button as active.

Example for Reproduction:

  <k-segmented strong>
    <k-segmented-button
      v-for="option of [1, 2, 3]"
      :key="option"
      small
      strong
      :active="option === 1"
    >{{ option }} </k-segmented-button>
  </k-segmented>
github-actions[bot] commented 2 years ago

Hello @KRKnet. Please provide a online reproduction by Stack Blitz or a minimal GitHub repository. You can fork this Stack Blitz to get start. Issues labeled by missing demo will be closed if no activities in 3 days.

nolimits4web commented 2 years ago

fixed by #51