Update file-explorer.js

fixed tests (expanding)
pull/1/head
Liana Husikyan 6 years ago committed by GitHub
parent 67122f1c0b
commit 8f5f612c7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/app/files/file-explorer.js

@ -509,13 +509,14 @@ fileExplorer.prototype.renderMenuItems = function () {
return yo` return yo`
<label class="${icon} ${css.newFile}"> <label class="${icon} ${css.newFile}">
<input type="file" onchange=${(event) => { <input type="file" onchange=${(event) => {
event.stopPropagation();
this.uploadFile(event) this.uploadFile(event)
}} multiple /> }} multiple />
</label> </label>
` `
} else { } else {
return yo` return yo`
<span onclick=${() => { this[ action ]() }} class="newFile ${css.newFile}" title=${title}> <span onclick=${(event) => { event.stopPropagation(); this[ action ]() }} class="newFile ${css.newFile}" title=${title}>
<i class=${icon}></i> <i class=${icon}></i>
</span> </span>
` `

Loading…
Cancel
Save