toggle
toggle copied to clipboard
@change is triggered on load when given a value
I've already seen #1 and #2, but this does seem to still be happening. I tried the is mounted fix, and that didnt stop it. Do we know why this is happening or a workaround?
This issue is still present in 2.0.2, the @change event is triggered when the v-model is passed down to the toggle component.
The mounted fix (found here: https://github.com/vueform/toggle/issues/2#issuecomment-844372391) works but it's a nasty workaround.
This should only happen if the model value does not equal to trueValue or falseValue. If you experience otherwise feel free to reopen.