我创建了一个小演示,并且仅在未设置时才selectionBinding
工作。multiple="true"
这是代码。
{{view Ember.Select multiple=true content=sampleData
optionValuePath="content.value"
optionLabelPath="content.label"
selectionBinding=testBinding}} // Multi select does not update controller
{{view Ember.Select content=sampleData
optionValuePath="content.value"
optionLabelPath="content.label"
selectionBinding=testBinding2}} // Single select does update controller
示例:http: //jsbin.com/ojAvIPA/1