Skip to content
This repository has been archived by the owner on Jul 8, 2020. It is now read-only.

M.SelectionListView not synchronized with DOM. #122

Open
rois286 opened this issue Sep 3, 2013 · 0 comments
Open

M.SelectionListView not synchronized with DOM. #122

rois286 opened this issue Sep 3, 2013 · 0 comments

Comments

@rois286
Copy link

rois286 commented Sep 3, 2013

When having a selection list with content binding of a few objects, on which some are selected.
Then changing the bounded data (all selections are cleared)
And re-selecting the same items (with setSelection).

The DOM behind the view has a 'checked' status of false and not true.
Which reveals a bug, that if I click on one of the selected items, despite its check mark, it still "thinks" that the item is not selected.

Thus, have to add in 'setSelection' method, the following line:
this.checked = true; // without jquery $(this).

Which is not at all like the following:
$(this).attr('checked', 'checked');

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

No branches or pull requests

1 participant