-
Notifications
You must be signed in to change notification settings - Fork 55
Changes to selectedValues not reflected in display #112
Comments
Thanks for the repro; my first thought / hope is that this might be as simple as changing this observer to |
Neither using 'selectedValues.*' nor 'selectedValues.splices' works, at least according to this test case: |
@andrewmwhite, I talked with @cdata yesterday about this and he mentioned that |
My branch doesn't -- it just provides the test case. I tried both 'selectedValues.*' and 'selectedValues.splices' offline and neither worked. |
Oh, I just noticed that your tests use the native array methods; unfortunately, these won't trigger updates to bindings / observers / computed properties. Switching |
Apparently my brain was checked out yesterday -- thanks for pointing that out. I've fixed the test case and implemented your suggested change, which passes the (fixed) tests. I'll submit a PR once I verify this fixes the downstream problem I was encountering. |
Awesome! |
For instance, removing an element from selectedValues does not result in it's "selected" appearance changing to deselected. See JS Bin here.
The tests appear to cover cases where the selectedValues array is overwritten, not modified (pushed, shifted, spliced, etc., by the Polymer array mutation methods).
The text was updated successfully, but these errors were encountered: