remove subfolder from the list of expanded path if a folder is collapsed

pull/11/head
yann300 4 years ago committed by ioedeveloper
parent 2ce80d1eb7
commit 8febe70728
  1. 2
      apps/remix-ide/src/app/ui/TreeView.js

@ -104,7 +104,7 @@ class TreeView {
if (self.isExpanded(keyPath)) { if (self.isExpanded(keyPath)) {
if (!self.expandPath.includes(keyPath)) self.expandPath.push(keyPath) if (!self.expandPath.includes(keyPath)) self.expandPath.push(keyPath)
} else { } else {
self.expandPath = self.expandPath.filter(path => path !== keyPath) self.expandPath = self.expandPath.filter(path => !path.startsWith(keyPath))
} }
} }
label.oncontextmenu = function (event) { label.oncontextmenu = function (event) {

Loading…
Cancel
Save