Skip to content
This repository has been archived by the owner on Dec 19, 2017. It is now read-only.

core-selector multiple selection binding to selected not working #157

Open
fedy2 opened this issue Nov 14, 2014 · 1 comment
Open

core-selector multiple selection binding to selected not working #157

fedy2 opened this issue Nov 14, 2014 · 1 comment

Comments

@fedy2
Copy link

fedy2 commented Nov 14, 2014

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

@jakemac53
Copy link
Contributor

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants