This repository has been archived by the owner on Dec 28, 2024. It is now read-only.
selectedItems creates a new array with each change instead of modify the current one #152
Open
8 tasks done
Description
Property
selectedItems
set a new array with each change instead off notify the additions or eliminations. This causes erratic behavior by observing nodes created fromselectedItems
Expected outcome
Keep the reference value in the property and change the values.
Actual outcome
Change the array reference, creating a new one.
Live Demo
Current behavior
The selected items are managed wrong and the observer generate inconsistent data.
https://jsbin.com/fozihiw/edit?html,console,output
New behavior
The selected items are managed well
https://jsbin.com/qobuzeg/edit?html,console,output
Steps to reproduce
iron-selector
or any element which implement iron-selectableselectedItems
in adom-repeat
Browsers Affected
The text was updated successfully, but these errors were encountered: