Skip to content

Able to Bypass Prompt if Link Clicks Are Close Together #45

@bsardo

Description

@bsardo

Hey there!

I want to first say thanks for the plugin!

I started using this plugin at v1.6 and did not have any issues.

I just recently upgraded to v1.7 for the safari support but I noticed an issue in v1.7 that I cannot duplicate in v1.6.

With v1.7, if I make my form dirty and then repeatedly click a link on the page and answer 'stay on the page', I am eventually navigated away from the page without receiving the confirmation popup. This occurs if my link clicks and answers to the prompt to stay on the page are quick, approximately a second or two apart from each other.

To illustrate my point, consider the following sequence of events (note this is just an example, not the only sequence that results in the issue):

  1. make form dirty
  2. click link 1 @t=0
  3. answer prompt with 'stay on the page' @t ~= 1 sec
  4. click link 1 @t ~= 1 sec
  5. answer prompt with 'stay on the page' @t ~= 2 sec
  6. click link 1 @t ~= 2 sec
  7. no prompt received, navigated to link 1 target

The problem is not browser-specific; I was able to produce this issue using v1.7 in chrome, firefox, and IE.

Brian

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions