tree: activate tab when selecting it in the project tree
This commit is contained in:
parent
2d5ae8219d
commit
e893e7bf09
3 changed files with 8 additions and 1 deletions
|
|
@ -174,7 +174,7 @@ class Panel extends Container() {
|
|||
this.createNavigation()
|
||||
|
||||
this.navigation.addEventListener('fast-click', (e)=>{
|
||||
if (!e.target.hasAttribute('data-widget')) return
|
||||
if (!e.target.hasAttribute('data-widget') || e.capturedByEditor) return
|
||||
var index = DOM.index(e.target)
|
||||
this.setValue(index, {sync: true, send:this.value != index})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue