core-elements
core-elements copied to clipboard
core-selector multiple selection binding to selected not working
The binding to selected property modifies the passed List adding the original List as element. More details here: http://stackoverflow.com/questions/26926815/dart-polymer-core-selector-multiple-selection-binding-to-selected-not-working
Looks like this is happening because of an Array.isArray check on selected (on the js side).
The hack around this is to create a JsArray instead of an ObservableList and set that in the binding instead. It won't be observable on the dart side of things, but you might not need it to be.