Skip to content

Commit 08ab3f6

Browse files
committed
bumped v0.7.5
1 parent 3e52adf commit 08ab3f6

File tree

7 files changed

+33
-3207
lines changed

7 files changed

+33
-3207
lines changed

dist/index.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@
689689
$$invalidate(3, editFocussed = true);
690690
}
691691

692-
async function editBlurHandler(ev) {
692+
function editBlurHandler(ev) {
693693
dispatch("consoleLog", ev.type);
694694
stopEditing();
695695
}
@@ -785,6 +785,16 @@
785785
}
786786
}
787787

788+
// Bring focus back to the drag element if editElement was focussed:
789+
if (document.activeElement === editElement) {
790+
setTimeout(
791+
() => {
792+
dragElement.focus();
793+
},
794+
0
795+
);
796+
}
797+
788798
dispatch("editend");
789799
}
790800

dist/index.mjs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ function instance($$self, $$props, $$invalidate) {
683683
$$invalidate(3, editFocussed = true);
684684
}
685685

686-
async function editBlurHandler(ev) {
686+
function editBlurHandler(ev) {
687687
dispatch("consoleLog", ev.type);
688688
stopEditing();
689689
}
@@ -779,6 +779,16 @@ function instance($$self, $$props, $$invalidate) {
779779
}
780780
}
781781

782+
// Bring focus back to the drag element if editElement was focussed:
783+
if (document.activeElement === editElement) {
784+
setTimeout(
785+
() => {
786+
dragElement.focus();
787+
},
788+
0
789+
);
790+
}
791+
782792
dispatch("editend");
783793
}
784794

0 commit comments

Comments
 (0)