jquery/jquery-mobile — Issue #3136: preventDefault does not prevent history change during pagebeforechange event
Author: kirk911
Created: 2011-11-22 14:33:31+00:00
State: open

We intercept the pagebeforechange event and sometimes cancel the event using preventDefault. When pagebeforechange is fired from a back button with data-rel="back", even though the pagebeforechange event is cancelled using preventDefault, the url has already decremented one page in history. I don't know how to setup a multipage environment with history within jsfiddle, or I'd setup an example. Removing data-rel="back" and setting an href in the back button does not cause this behavior. This is happening in version 1.0.