[TIMOB-28548] iOS: ListView "itemsselected" event only fired when tapping checkmarks
GitHub Issue | n/a |
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2021-10-20T00:26:23.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 10.2.0 |
Components | iOS |
Labels | ListView, ios, parity |
Reporter | Joshua Quick |
Assignee | Joshua Quick |
Created | 2021-10-07T02:00:53.000+0000 |
Updated | 2021-10-20T00:26:23.000+0000 |
Description
*Summary:*
ListView
event "itemsselected" is only fired when tapping on item checkboxes while editing with multi-selection enabled. The "itemsselected" event is *NOT* fired when tapping on anywhere else on the ListItem
such the label or empty row area, even though it is selected and added to the "selectedItems" array property. This makes it difficult to know what items are currently selected (other than setting up a timer).
*Steps to reproduce:*
Build and run [^ListViewSelectionCountTest.js] on iOS.
Tap on the "Edit" button.
Tap on a list item's check mark.
Notice top label reads "1 Selected". _(This is good.)_
Tap on the same list item's label to unselect it. _(Do not tap it's checkmark.)_
Notice top label reads "1 Selected". _(This is bad. Event was not fired.)_
Tap on multiple list item labels and not their checkboxes.
Notice top label never changes.
*Note:*
This is not an issue on Android, making it easy to keep a selection count via events.
Attachments
PR (master): https://github.com/appcelerator/titanium_mobile/pull/13107