Skip to content

Commit bfe1d41

Browse files
authored
Merge pull request #20 from Q42/bugfix/popup-close-button-focus-defer
popup close button focus timeout preventing switching viewport if animated
2 parents bf4fae0 + 13fa4df commit bfe1d41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/svelte/components/MarkerPopup.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
8383
onMount(() => {
8484
marker.tags.forEach(c => _cont.classList.add(c));
85-
tick().then(() => _cont.querySelector('button')?.focus());
85+
setTimeout(() => _cont.querySelector('button')?.focus(), 500);
8686
const embeds = 'embedImages' in marker ? marker.embedImages as Models.ImageData.Embed[] : undefined;
8787
if(embeds) micrio.$current?.data.update(d => {
8888
if(!d) d = {embeds:[]};

0 commit comments

Comments
 (0)