[TIMOB-27634] Android: TableViewRow hasCheck Property Does Not Work as Expected
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 8.0.0, Release 8.1.0, Release 8.2.0, Release 8.3.0 |
Fix Version/s | n/a |
Components | Android |
Labels | engSchedule, tableview |
Reporter | Sohail Saddique |
Assignee | Yordan Banev |
Created | 2019-11-27T10:48:56.000+0000 |
Updated | 2020-02-17T12:03:00.000+0000 |
Description
Using a TableViewRow with the hasCheck property produces differing results for iOS and Android, under certain conditions.
*Test Steps*
1. Create a new classic app
2. Download app.js from here and copy-paste the contents into the empty app.js
3. Run the app on iOS and Android (using any recent SDK)
4. Tap and select one cell from Table 1, 2 and 3
*Actual result*
iOS: A check-mark appears on each selected cell in all 3 tables.
Android: A check-mark appears only under Table 1 and Table 2. No check-mark appears under any cell in Table 3.
*Workaround (Android)*
In app.js, go right towards the bottom. You will see the following code:
table3.addEventListener('click', function(e) {
if (e.rowData.hasCheck) {
e.rowData.hasCheck = false;
} else {
e.rowData.hasCheck = true;
}
If you change _rowData_ to just _row_ (as in the previous two tables), and re-run the app, Android will now show the check-mark upon selection in Table 3.
*Expected result*
Using _rowData_ or _row_ both work on iOS. Only _row_ works for Android whereas both should work?
Attachments
File | Date | Size |
---|---|---|
app.js | 2019-11-26T15:59:47.000+0000 | 7639 |
No comments