fix sortable

This commit is contained in:
vcoppe
2025-11-09 19:00:33 +01:00
parent 39b8d2e70d
commit 9df014e986
4 changed files with 11 additions and 18 deletions

View File

@@ -28,16 +28,7 @@
setContext('recursive', recursive);
onMount(() => {
if (orientation === 'vertical') {
selection.update(($selection) => {
$selection.forEach((item) => {
if ($selection.hasAnyChildren(item, false)) {
$selection.toggle(item);
}
});
return $selection;
});
} else {
if (orientation === 'horizontal') {
selection.update(($selection) => {
$selection.forEach((item) => {
if (!(item instanceof ListFileItem)) {