toggle icon indicating copy to clipboard operation
toggle copied to clipboard

@change is triggered on load when given a value

Open xLink opened this issue 3 years ago • 1 comments

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?

xLink avatar May 16 '22 11:05 xLink

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.

Martinretrou avatar Jun 22 '22 09:06 Martinretrou

This should only happen if the model value does not equal to trueValue or falseValue. If you experience otherwise feel free to reopen.

adamberecz avatar Dec 20 '22 07:12 adamberecz