open collapsibles if needed

This commit is contained in:
vcoppe
2024-06-05 21:54:29 +02:00
parent 7c29db40ee
commit fa3099c4b0
2 changed files with 15 additions and 7 deletions

View File

@@ -198,8 +198,10 @@
});
}
let firstUpdateAfterMount = false;
onMount(() => {
createSortable();
firstUpdateAfterMount = true;
});
afterUpdate(() => {
@@ -218,7 +220,10 @@
});
syncFileOrder();
updateFromSelection();
if (firstUpdateAfterMount) {
firstUpdateAfterMount = false;
updateFromSelection();
}
});
function getChangedIds() {