diff --git a/src/app/files/file-explorer.js b/src/app/files/file-explorer.js index b1d90ea71a..6c853bd07e 100644 --- a/src/app/files/file-explorer.js +++ b/src/app/files/file-explorer.js @@ -79,8 +79,8 @@ function fileExplorer (localRegistry, files) { self.focusElement = self.treeView.labelAt(self.focusPath) // TODO: here we update the selected file (it applicable) // cause we are refreshing the interface of the whole directory when there's a new file. - if (self.focusElement && !self.focusElement.classList.contains(css.hasFocus)) { - self.focusElement.classList.add(css.hasFocus) + if (self.focusElement && !self.focusElement.classList.contains('bg-primary')) { + self.focusElement.classList.add('bg-primary') } }) } @@ -122,7 +122,8 @@ function fileExplorer (localRegistry, files) { }, formatSelf: function formatSelf (key, data, li) { var isRoot = data.path === self.files.type - return yo`