Skip to content

Commit

Permalink
fix(playground): keep click handler if not using popup
Browse files Browse the repository at this point in the history
  • Loading branch information
noook committed Feb 5, 2025
1 parent 4852cd7 commit 9b25a6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion playground/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const providers = computed(() =>
{
label: user.value?.bluesky || 'Bluesky',
click() {
console.log('hello')
const handle = prompt('Enter your Bluesky handle')
if (handle) {
navigateTo({
Expand Down Expand Up @@ -223,7 +224,7 @@ const providers = computed(() =>
prefetch: false,
external: true,
to: inPopup.value ? '#' : p.to,
click: inPopup.value ? () => openInPopup(p.to) : void 0,
click: inPopup.value ? () => openInPopup(p.to) : p.click,
})),
)
</script>
Expand Down

0 comments on commit 9b25a6d

Please sign in to comment.