euvl / euvl/vue-js-toggle-button

Sync doesn't work as expected, value/v-model can get out of sync

Open
#79 5 comments 5 reactions 0 assignees View on GitHub
Dominant language
Vue
Stars
921
Forks
131
PR merge metrics
No merged PRs in 30d

Description

If I have the toggle in sync mode connected to a value using v-model (or :value and @input) the toggle can get out of sync of the value.

When sync is selected the toggle function could not set `this.toggled = !this.toggled` directly, but could just send the value through the input event and let the parent's v-model handler set the value.or quickly changes.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.