mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-12-02 01:52:12 +00:00
open collapsible if an item item is selected
This commit is contained in:
@@ -58,17 +58,11 @@
|
||||
|
||||
const { treeFileView } = settings;
|
||||
|
||||
// function openIfSelectedChild() {
|
||||
// if (collapsible && $treeFileView && $selection.hasAnyChildren(item, false)) {
|
||||
// collapsible.openNode();
|
||||
// }
|
||||
// }
|
||||
|
||||
// if ($selection) {
|
||||
// openIfSelectedChild();
|
||||
// }
|
||||
|
||||
// afterUpdate(openIfSelectedChild);
|
||||
$effect(() => {
|
||||
if (collapsible && $treeFileView && $selection.hasAnyChildren(item, false)) {
|
||||
collapsible.openNode();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
{#if node instanceof Map}
|
||||
|
||||
Reference in New Issue
Block a user