Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NavigationMenu/DropdownMenu/ContextMenu] Handle select event #2147

Closed
benjamincanac opened this issue Mar 27, 2024 · 0 comments
Closed

[NavigationMenu/DropdownMenu/ContextMenu] Handle select event #2147

benjamincanac opened this issue Mar 27, 2024 · 0 comments
Labels
enhancement New feature or request v3 #1289

Comments

@benjamincanac
Copy link
Member

Description

There is currently an issue that prevents from defining types with an interface: vuejs/core#8457

interface NavigationMenuEmits<T extends NavigationMenuLink> extends NavigationMenuRootEmits {
  select: [event: Event, link: T]
}

const emits = defineEmits<NavigationMenuEmits<T>>()
<NavigationMenuLink @select="emits('select', $event, link)">
@benjamincanac benjamincanac added the enhancement New feature or request label Mar 27, 2024
@benjamincanac benjamincanac changed the title [NavigationMenu/DropdownMenu] Handle select event [NavigationMenu/DropdownMenu/ContextMenu] Handle select event Apr 26, 2024
@benjamincanac benjamincanac added the v3 #1289 label Jul 18, 2024
@benjamincanac benjamincanac transferred this issue from benjamincanac/ui3 Sep 6, 2024
@benjamincanac benjamincanac closed this as not planned Won't fix, can't repro, duplicate, stale Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request v3 #1289
Projects
None yet
Development

No branches or pull requests

1 participant