You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
Thanks for the package.
I found an issue where assigning an id to the toggle does not cause the value to switch upon clicking the label with the same for value.
Expected
To be able to assign an id to the component with value switch1 and add that same value to the for attribute of a label. Clicking on the label should toggle the state
What happened instead?
The state does not get updated
Reproduction
Add the package to a Vue or Nuxt app
<template>
<Toggleid="s1"name="s1"v-model="value"
></Toggle>
<labelfor="s1">Switch it up</label>
</template>
<scriptsetuplang="ts">importTogglefrom"@vueform/toggle";const value =ref(false);</script>
The text was updated successfully, but these errors were encountered:
Hello,
Thanks for the package.
I found an issue where assigning an
id
to the toggle does not cause the value to switch upon clicking the label with the samefor
value.Expected
To be able to assign an id to the component with value
switch1
and add that same value to thefor
attribute of a label. Clicking on the label should toggle the stateWhat happened instead?
The state does not get updated
Reproduction
The text was updated successfully, but these errors were encountered: