Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Later
-
Adobe Flex SDK Previous
-
None
-
None
-
Affected OS(s): All OS Platforms
Affected OS(s): All OS Platforms
Language Found: English
Description
Steps to reproduce:
1. Create view-based mobile app with three views, e.g. "first view," "second view," and "third view"
2. Add buttons to views to support navigation: push second view onto first view, push third view onto second view
3. Add "back key" handler on third view that calls "navigator.popToFirstView()"
Actual Results:
All views are popped, resulting in blank screen (with blank action bar)
Expected Results:
Although usage is incorrect (i.e. code should call event.preventDefault() to prevent the normal back key behavior from being performed), at no point should the navigator allow you to pop all views from the stack.
Workaround (if any):
Call event.preventDefault() after popToFirstView().