[AC-6183] Delay showing alert in item click event
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Needs more info |
Resolution Date | 2019-04-22T22:27:40.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | alert, alertDialog, ios, itemclick, listView |
Reporter | Lorenzo Piccinini |
Assignee | Shak Hossain |
Created | 2019-03-28T13:55:10.000+0000 |
Updated | 2019-04-22T22:27:40.000+0000 |
Description
*Problem:*
I have problem with big delay when I click templated (moderately complex
) item of list view.
listView.addEventListener("itemclick", function(e){ù
Ti.API.info("alert");
alert("Hello!");
// or
// alertDialog();
}) ;
When I click item I instantly see "alert" log in console but the alert "Hello" is shown width 1-2 seconds dalay. With SDK 8.0.0 the problem gets worse.
*Workaround:*
Using event click configuration inside item template delay disappears.
var itemTemplate = {
properties: {
accessoryType: Ti.UI.LIST_ACCESSORY_TYPE_NONE
},
events: {
click: myEvent
},
}
function myEvent(){
Ti.API.info("alert");
alert("Hello!");
}
Hello, Tested the issue on android and iOS device both with the SDK 8.0.0.GA. Item click event is firing as expected. *Test Code:*
*Test Result:*
Can you please test this sample code on your end and let us know how it goes.
Hello, We haven't heard back from you since our last response. I am just following up to check the status of this case and if you need further help on it.