Polymer / polymer-starter-kit

A starting point for Polymer apps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Clicking links in es5-bundled on Internet Explorer 11 causes entire application to refresh

shawnd opened this issue · comments

Description

PSK reloads with every route change when using Internet Explorer 11.

Expected outcome

Click link in PSK, using Internet Explorer 11, and route changes without reloading app.

Actual outcome

Click link in PSK, using Internet Explorer 11, and app reloads prior to route change.

Live Demo

http://psk.shdh.ca

Steps to reproduce

  1. polymer init
  2. Select Polymer Starter Kit
  3. polymer build
  4. Deploy build/es5-bundled
  5. Access using Internet Explorer 11
  6. Click link and witness app reload prior to route change

Browsers Affected

  • Chrome
  • Edge
  • Firefox
  • IE 11
  • Safari 8
  • Safari 9

Could you try the latest version? I can't reproduce.

Demo: https://psk-demo-6e320.firebaseapp.com


Edit: It works for me in local (with polymer serve build/es5-bundled/) but it doesn't work when it is deployed in Firebase.

Does this mean the global onclick handler in iron-location might be broken in IE?

@abdonrd It also works for me when served locally by polymer serve but not when deployed. Also, the error exists in your Firebase deployment for me as well.

The issue is hard to reproduce sometimes. I face this on and off. This actually happens on every browser I have tested. The only way to resolve is to remove your entire project and rerun polymer init and build it again then if polymer serve works it works. Something odd happening under the hood.

I've only experienced the problem with Internet Explorer 11, no other browser I've tested has this issue. I've been able to consistently reproduce this error with fresh installs of polymer-cli.

The only way to resolve is to remove your entire project and rerun polymer init and build it again then if polymer serve works it works.

Really not sure what you mean by "if polymer serve works it works"

Furthermore, me and @abdonrd were able to reproduce the error with the es5-bundle output from polymer build but we could not reproduce the error with polymer serve

I can confirm that version 2.x of PSK doesn't have the error, however version 3.x of PSK does.

I've mitigated this issue by running bower install -S webcomponents/URL#^0.5.7 and adding <script src="../bower_components/url/url.js"></script> prior to the app-location import.