Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v-model doesn't work with computed setters on checkboxes? #3307

Closed
kaptajnen opened this issue Jul 21, 2016 · 3 comments
Closed

v-model doesn't work with computed setters on checkboxes? #3307

kaptajnen opened this issue Jul 21, 2016 · 3 comments

Comments

@kaptajnen
Copy link

kaptajnen commented Jul 21, 2016

It is not 100% clear from the documentation if this is supposed to work on for checkboxes. If not, I would like to know how to work around this issue.

Vue.js version

1.0.26

Reproduction Link

http://jsfiddle.net/p04dgeba/

Steps to reproduce

Set v-model on a checkbox to a computed property with a setter. Setter is not called.

What is Expected?

Setter should be called

What is actually happening?

Setter is not called

@kaptajnen kaptajnen changed the title v-model doesn't work with computed setters? v-model doesn't work with computed setters on checkboxes? Jul 21, 2016
@kaptajnen
Copy link
Author

Edited to make it clear this issue is for checkboxes

@kaptajnen
Copy link
Author

Awesome, thanks!

@phanatomtalonTalon
Copy link

data is array not string

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants