[outline] Reveal selected item after clearing outline filter

This commit is contained in:
Nick O'Leary 2020-05-01 17:51:44 +01:00
parent 78c86880e4
commit fc2a9a85ff
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
2 changed files with 6 additions and 0 deletions

View File

@ -730,6 +730,8 @@
if (s.length) { if (s.length) {
return s.parent().data('data'); return s.parent().data('data');
} else { } else {
// TODO: This may be a bug.. it causes the call to return itself
// not undefined.
return undefined; return undefined;
} }
}, },

View File

@ -217,6 +217,10 @@ RED.sidebar.info.outliner = (function() {
},true) },true)
} else { } else {
treeList.treeList('filter',null); treeList.treeList('filter',null);
var selected = treeList.treeList('selected');
if (selected.id) {
treeList.treeList('show',selected.id);
}
} }
} }