google-code-export / mvp4g

Automatically exported from code.google.com/p/mvp4g
1 stars 0 forks source link

NavigationConfirmation is triggered after History has been updated #130

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create a project that uses hyperlink navigation
2. Using History with navigation confirmation 
2. click hyperlink (which triggers an event with nvagationEvent = true)
3. history token is updated
4. do not fire the event in the confirm method

What is the expected output? What do you see instead?

Expected result is no update of the history token. Instead the token is updated.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by frank.hossfeld on 30 Sep 2014 at 6:50

GoogleCodeExporter commented 9 years ago
I will close the issue, because there is nothing we can do to avoid the 
behavior.

If the project is using navigation with confirmation the workaround will be:

Instead using hyperlink navigation, use an anchor and add a ClickHandler. If 
the anchor is clicked, fire an event to go to the next place.  

This should work.

Original comment by frank.hossfeld on 8 Jan 2015 at 12:57