Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28548] iOS: ListView "itemsselected" event only fired when tapping checkmarks

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2021-10-20T00:26:23.000+0000
Affected Version/sn/a
Fix Version/sRelease 10.2.0
ComponentsiOS
LabelsListView, ios, parity
ReporterJoshua Quick
AssigneeJoshua Quick
Created2021-10-07T02:00:53.000+0000
Updated2021-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

FileDateSize
ListViewSelectionCountTest.js2021-10-07T01:56:42.000+00001847
TableViewSelectionCountTest.js2021-10-07T19:05:19.000+00001470

Comments

  1. Joshua Quick 2021-10-07

    PR (master): https://github.com/appcelerator/titanium_mobile/pull/13107

JSON Source