-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Closed
Description
Vue Version
2.1.10
Issue Description
Based on other examples I've seen, when embedding a checkbox in a custom component a 'proxy' value has to be used to emulate the native v-model
behaviour for a checkbox or radio input.
This is particularly important when binding v-model
on the custom component to an array as opposed to a boolean.
This technique works fine in Firefox and Webkit-based browsers but fails in IE and Edge.
Demonstration of Issue
http://jsfiddle.net/andrewcourtice/jgxzbbvv/
Steps to Reproduce
- Open the above fiddle in a Firefox or a Webkit-based browser
- Check the checkboxes and note the array of selected items being updated correctly
- Open the above fiddle in IE or Edge
- Check the checkboxes and note the difference in behaviour to step 2
Expected Outcome
The array of selected items (and the raw output) should be updated as each item is checked.
Actual Outcome
In IE and Edge the raw output is displaying a boolean value and the checked state of the checkboxes is inconsistent.
Thanks!
Thijs5, SeregPie, matt-snider, thedamon and fluresceinatt1sb
Metadata
Metadata
Assignees
Labels
No labels