Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
TorstenDittmann committed Sep 9, 2024
1 parent aaf7747 commit 53b3a03
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 2 additions & 3 deletions v2/pink-sb/src/lib/Popover.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
let referenceElement: HTMLDivElement;
let tooltipElement: HTMLDivElement;
function toggle(event: Event) {
async function toggle(event: Event) {
event.stopPropagation();
await update();
show = !show;
}
Expand Down Expand Up @@ -40,8 +41,6 @@
top: `${y}px`
});
}
$: if (show) update();
</script>

<svelte:window on:click={onBlur} on:keydown={onKeyDown} on:resize={update} />
Expand Down
5 changes: 2 additions & 3 deletions v2/pink-sb/src/lib/Tooltip.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
let referenceElement: HTMLDivElement;
let tooltipElement: HTMLDivElement;
function showTooltip() {
async function showTooltip() {
await update();
show = true;
}
Expand All @@ -29,8 +30,6 @@
top: `${y}px`
});
}
$: if (show) update();
</script>

<svelte:window on:resize={update} />
Expand Down

0 comments on commit 53b3a03

Please sign in to comment.