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 () {
return yo`
<label class="${icon} ${css.newFile}">
<input type="file" onchange=${(event) => {
event.stopPropagation();
this.uploadFile(event)
}} multiple />
</label>
`
} else {
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>
</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