We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cbc961 commit 4d9de6aCopy full SHA for 4d9de6a
src/platforms/web/compiler/directives/model.js
@@ -56,8 +56,11 @@ function genCheckboxModel (
56
const falseValueBinding = getBindingAttr(el, 'false-value') || 'false'
57
addProp(el, 'checked',
58
`Array.isArray(${value})` +
59
- `?_i(${value},${valueBinding})>-1` +
60
- `:_q(${value},${trueValueBinding})`
+ `?_i(${value},${valueBinding})>-1` + (
+ trueValueBinding === 'true'
61
+ ? `:(${value})`
62
+ : `:_q(${value},${trueValueBinding})`
63
+ )
64
)
65
addHandler(el, 'change',
66
`var $$a=${value},` +
0 commit comments