core-elements icon indicating copy to clipboard operation
core-elements copied to clipboard

core-selector multiple selection binding to selected not working

Open fedy2 opened this issue 11 years ago • 1 comments

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

fedy2 avatar Nov 14 '14 09:11 fedy2

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.

jakemac53 avatar Dec 09 '14 23:12 jakemac53