Skip to content

Commit e710717

Browse files
bobbob
authored andcommitted
Checkbox can bind on name and checked
1 parent 8cd0c30 commit e710717

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/edge/Two-way binding.md.hbs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ Checkboxes may also be bound by the `name` attribute, which will result in the v
4343

4444
If `colors` is an array, `['Red', 'Yellow', 'Green', 'Blue']`, then checking the first box will result in `selected` becoming `['Red']`. Checking the third box will result in `selected` becoming `['Red', 'Green']`. The array may also be updated from code using `set` or any of the array modification methods available to Ractive, and the checkboxes will be updated to reflect the contents of the array in the Ractive viewmodel.
4545

46-
**Note** that checkboxes may be bound by either `checked` or `name` but not both.
46+
**Note** that checkboxes with both a `checked` and `name` binding will *only* bind on `checked`, not both. The `name` binding will be treated
47+
as a normal mustache variable.
4748

4849
### Radios
4950

0 commit comments

Comments
 (0)