This commit removes that hack with dynamically updating the Web Component's value / selectedItem.key after item remap which turned out to be problematic. The new approach overrides the _isItemSelected logic to also consider item remapping when highlighting selection.
By remapping I mean what happens when you scroll away from the currently selected item so that the range which included the selected item gets discarded and later returning to that range so that the selected item is represented by a new object instance with new key.
Fixes #304
This commit removes that hack with dynamically updating the Web Component's
value
/selectedItem.key
after item remap which turned out to be problematic. The new approach overrides the_isItemSelected
logic to also consider item remapping when highlighting selection.By remapping I mean what happens when you scroll away from the currently selected item so that the range which included the selected item gets discarded and later returning to that range so that the selected item is represented by a new object instance with new
key
.This change is