Hybrid View
-
4 Oct 2012 6:58 AM #1
List ItemTap Event Fails On Subsequent Viewings of ListView
List ItemTap Event Fails On Subsequent Viewings of ListView
I have a navigation view with a button that pushes a ListView into place. When I hit the back button to go back to the main navigation view and then revisit the listview, the item tap event for my list fails to invoke when selecting an item. On initial viewing of the list I can select an item and the item tap event fires. Any assistance with this issue will be greatly appreciated. Thanks in advance.
-
9 Oct 2012 2:04 PM #2
Are you destroying the item? Do you have colliding ids? Nothing in particular rings bells. Can you post a simple archive of an example that shows the same behavior?
Aaron Conran
@aconran
Sencha Architect Development Team
-
10 Oct 2012 4:55 AM #3
Posted Archive
Posted Archive
I have attached a copy of the project archive.
-
10 Oct 2012 11:57 AM #4
Encountering this same issue
Encountering this same issue
I'm creating my first Sencha Touch application and am encountering this same problem.
My app has a couple of buttons that lead to ListViews which then have an item tap controller action attached that goes to a detail view/panel. Whenever I use the Back Button to go back to the button view after going to the detail view and then clicking to the ListView I can no longer get to the detail view the itemtap controller is not being fired.
I've used the Safari Developer Tool and set a break point just inside the Controller and it is not hit.
Any help to solve this issue is appreciated.
-
11 Oct 2012 2:23 PM #5
It looks like the listView is getting created when you hit the button in your navView and destroyed every time you hit the back button, which must be causing problems for the selector in your control. This very well could be a bug.
I changed your selector in your control to be more specific and it seems to have fixed the problem.
Code:control: { "#mainNav #listZoneCoordinators": { itemtap: 'onListZoneCoordinatorsItemTap' } }
-
11 Oct 2012 3:04 PM #6
I applied a similar thing and it worked for me:
Code:control: { "#loginNavigationView #personList": { itemtap: 'onActivityListItemTap' }


Reply With Quote