Skip to content

Commit

Permalink
Add workaround for #2
Browse files Browse the repository at this point in the history
  • Loading branch information
myfrom committed Jun 3, 2018
1 parent dbed549 commit 597fa9a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/sp-upload.html
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@
0 3px 5px rgba(37,37,37,0.2);
z-index: 2;
}

/* Workaround for #2 */
.is-firefox .list-item {
will-change: unset !important;
}

</style>
<!-- ::POLYMER-BUILD-FIX-UPLOADER:: -->
Expand Down Expand Up @@ -362,6 +367,10 @@ <h1 class="header">Upload your audio</h1>
new Slip(slipList, { ignoredElements: [ 'dom-repeat' ] });

window.dispatchEvent(new CustomEvent('uploader-loaded'));

// Workaround for #2
if (navigator.userAgent.toLowerCase().indexOf('firefox') > -1)
this.shadowRoot.querySelector('#slip-container').classList.add('is-firefox');
}

close() {
Expand Down

0 comments on commit 597fa9a

Please sign in to comment.