What steps will reproduce the problem?
1. Create a PopupView/Presenter pair
2. For the PopupView use <g:DialogBox autoHideOnHistoryEventsEnabled="true">
3. In the presenter onReveal, call setOnLeaveConfirmation("Do you really want
to navigate?")
4. While the popup is showing, hit the back arrow on the browser
5. When the confirmation message shows up, hit "Cancel"
The user expect the popup to stays there, but it goes away.
This is due to the fact that autoHideOnHistoryEventsEnabled binds the dialog
box to the same event used by the PlaceManager. If the user cancels navigation,
the event is still fired and the dialog box is hidden.
What we should do instead is:
- Advise _against_ using autoHistOnHistoryEventEnabled.
- Provide an alternate mechanism that listens for PlaceNavigationEvent.
- Fire a PlaceNavigationEvent whenever the PlaceManager actually navigates.
What is the expected output? What do you see instead?
Please use labels and text to provide additional information.
Original issue reported on code.google.com by philippe.beaudoin on 28 Jun 2010 at 9:23
Original issue reported on code.google.com by
philippe.beaudoin
on 28 Jun 2010 at 9:23