We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b6e4202 + e57c6a0 commit f5baffcCopy full SHA for f5baffc
packages/svelte-file-tree/src/lib/components/Tree/state.svelte.ts
@@ -640,6 +640,11 @@ export function createTreeState<TData extends FileTreeNodeData>({
640
641
if (didPaste) {
642
clearClipboard();
643
+
644
+ // After pasting, the order of the items changes, which may cause focus
645
+ // to be lost.
646
+ // https://github.com/sveltejs/svelte/issues/15634
647
+ getItemElement(target.node.id)?.focus();
648
}
649
650
return didPaste;
0 commit comments