mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
[outline] Reveal selected item after clearing outline filter
This commit is contained in:
parent
78c86880e4
commit
fc2a9a85ff
@ -730,6 +730,8 @@
|
||||
if (s.length) {
|
||||
return s.parent().data('data');
|
||||
} else {
|
||||
// TODO: This may be a bug.. it causes the call to return itself
|
||||
// not undefined.
|
||||
return undefined;
|
||||
}
|
||||
},
|
||||
|
@ -217,6 +217,10 @@ RED.sidebar.info.outliner = (function() {
|
||||
},true)
|
||||
} else {
|
||||
treeList.treeList('filter',null);
|
||||
var selected = treeList.treeList('selected');
|
||||
if (selected.id) {
|
||||
treeList.treeList('show',selected.id);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user