fixed open menu in filelist after changing date
authorPhiTux <redacted>
Wed, 1 Oct 2025 09:52:23 +0000 (11:52 +0200)
committerPhiTux <redacted>
Wed, 1 Oct 2025 09:52:23 +0000 (11:52 +0200)
frontend/src/lib/FileList.svelte

index dceaa02db383a5e2be25fc13ad86ed41d75093f0..2d6cb8e2392894f45666ce901a38b5e15e925497 100644 (file)
        let draggedIndex = $state(null);
        let dragOverIndex = $state(null);
 
+       $effect(() => {
+               if (files) {
+                       openOptionsMenu = null;
+                       editingFilename = null;
+                       newFilename = '';
+               }
+       });
+
        function handleDragStart(event, index) {
                draggedIndex = index;
                event.dataTransfer.effectAllowed = 'move';
git clone https://git.99rst.org/PROJECT