File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 11<template >
2- <div >
2+ <div @click = " resetSelection " id = " container " >
33 <div id =" floatingInput" ><input v-on:keyup.enter =" sendValue" v-on:keyup.escape =" hideInput" v-model =" inputValue" style =" width :33% ;margin-left :33% ;" type =" text" /></div >
44 <button @click =" openFolder" >Open Folder</button >
55 <button @click =" showInput('leaf')" >📜</button ><button @click =" showInput('dir')" >📂</button >
@@ -169,6 +169,10 @@ export default {
169169 }
170170 })
171171 },
172+ resetSelection () {
173+ document .getElementById (this .selectedNode .id ).classList .toggle (' active' )
174+ this .selectedNode = null
175+ },
172176 sortTree (node = null ) {
173177 if (node === null ) node = this .data
174178 node .children .sort ((a , b ) => sortAlphabetically (a, b))
@@ -285,6 +289,9 @@ export default {
285289 background-color : #d0cfcf ;
286290 }
287291}
292+ #container {
293+ height : 100% ;
294+ }
288295 </style >
289296
290297<style lang="scss" scoped>
You can’t perform that action at this time.
0 commit comments