Skip to content

Commit

Permalink
[outline] Reveal selected item after clearing outline filter
Browse files Browse the repository at this point in the history
  • Loading branch information
knolleary committed May 1, 2020
1 parent 78c8688 commit fc2a9a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

}
}
Expand Down

0 comments on commit fc2a9a8

Please sign in to comment.