[TIMOB-28326] Android: Number-based "itemId" is transformed into string in ListView
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2021-05-18T18:23:39.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 10.0.0, Release 9.3.3 |
Components | Android, iOS |
Labels | ListView, android, parity |
Reporter | Hans Knöchel |
Assignee | Gary Mathews |
Created | 2021-01-22T11:51:16.000+0000 |
Updated | 2021-05-18T18:23:42.000+0000 |
Description
This is not a bug, because the property is documented to be a string, but it works on iOS and is super hard to debug, when you use the ID to search in a data set and suddenly cannot find any matches with a string compared to an int.
Could be improved, but is easy to workaround using
parseInt(event.itemId)
.
master: https://github.com/appcelerator/titanium_mobile/pull/12468
FR Passed, waiting on Jenkins build.
merged to master for 10.0.0 target. Backport PR for 9_3_X merged (unlikely to be released in a 9.3.3 GA)