Unverified Commit 8f5f612c authored by Liana Husikyan's avatar Liana Husikyan Committed by GitHub

Update file-explorer.js

fixed tests (expanding)
parent 67122f1c
...@@ -509,13 +509,14 @@ fileExplorer.prototype.renderMenuItems = function () { ...@@ -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>
` `
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment