Skip to content

Commit

Permalink
Removing paper-toast causing navigation problems in IE11
Browse files Browse the repository at this point in the history
  • Loading branch information
manolo committed Nov 13, 2017
1 parent 4924c05 commit 70e9bcd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
3 changes: 1 addition & 2 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"mock-http-request": "abuinitski/MockHttpRequest#npm_fix",
"web-component-tester": "^6.1.5",
"vaadin-demo-helpers": "vaadin/vaadin-demo-helpers",
"iron-icons": "^2.0.1",
"paper-toast": "^2.0.0"
"iron-icons": "^2.0.1"
}
}
1 change: 0 additions & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
<link rel="import" href="../../iron-icons/iron-icons.html">
<script src="../../mock-http-request/lib/mock.js"></script>
<link rel="import" href="../vaadin-upload.html">
<link rel="import" href="../../paper-toast/paper-toast.html">

<vaadin-component-demo config-src="demos.json"></vaadin-component-demo>
</body>
Expand Down
6 changes: 1 addition & 5 deletions demo/upload-basic-demos.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,12 @@ <h3>Setting Restrictions on Files to Upload</h3>
<span slot="drop-label">Up to 3 PDF files, 1 MB each</span>
</vaadin-upload>

<paper-toast id="rejectToast"></paper-toast>

<script>
window.addDemoReadyListener('#upload-basic-demos-setting-restrictions-on-files-to-upload', function(document) {
var upload = document.querySelector('vaadin-upload#rejectEventDemo');
var toast = document.querySelector('paper-toast#rejectToast');

upload.addEventListener('file-reject', function(event) {
toast.text = event.detail.file.name + ' error: ' + event.detail.error;
toast.open();
window.alert(event.detail.file.name + ' error: ' + event.detail.error);
});
});
</script>
Expand Down

0 comments on commit 70e9bcd

Please # to comment.