Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hashchange event is inconsistent on IE11 #55

Open
3 of 8 tasks
robrez opened this issue Sep 21, 2016 · 0 comments
Open
3 of 8 tasks

hashchange event is inconsistent on IE11 #55

robrez opened this issue Sep 21, 2016 · 0 comments

Comments

@robrez
Copy link

robrez commented Sep 21, 2016

Description

iron-location's handling of history api seems to be causing IE11 to not fire hashchange events in some edge-case scenarios. I'm able to reproduce whenever the site uses anchor tags for some navigation and javascript for some other navigation.

Expected outcome

browser fires hashchange event

Actual outcome

browser doesn't fire hashchange event

Live Demo

http://codepen.io/robrez/pen/zKNGmK

Steps to reproduce

The issue seems to occur iff you navigate using an anchor, then navigate using javascript, then navigate using the anchor that was previously used. In otherwords, given two routes A and B, if you navigate like this: A->B->A->B and A uses an anchor, but B uses javascript, hashchange events cease to fire.

If A and B both use anchors or A and B both use javascript, the issue does not seem to occur.

In the live demo provided, you can see the breakdown by clicking bravo->charlie->bravo->charlie
Note that iron-location incorrectly reports a hash of "bravo". Proceeding to a different route, eg delta, "fixes" the problem

I only speculate that this relates to iron-location because I have a separate demo that doesn't use iron-location. In that demo, hashchange events continue firing in every situation I've tested

Browsers Affected

  • Chrome
  • Firefox
  • Safari 9
  • Safari 8
  • Safari 7
  • Edge
  • IE 11
  • IE 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant