-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
types: type support for event modifiers #12675
base: main
Are you sure you want to change the base?
Conversation
Size ReportBundles
Usages
|
@vue/compiler-core
@vue/compiler-dom
@vue/compiler-ssr
@vue/compiler-sfc
@vue/reactivity
@vue/runtime-core
@vue/runtime-dom
@vue/server-renderer
@vue/shared
vue
@vue/compat
commit: |
/ecosystem-ci run |
📝 Ran ecosystem CI: Open
|
/ecosystem-ci run |
📝 Ran ecosystem CI: Open
|
Codewise LGTM
const f = (evt: Event) => { }
withModifiers(f, ['capture'])
EDIT2: ignore the strikeout comment text |
I see, read the docs again, that's the expected usage, thanks. |
@pikax I understand that perfectly well. But there is no typing for this, for |
@teleskop150750 apologies, what I meant is: "after reading the docs again, capture is only supported by appending *Capture to the ending of the event name, so this PR will fix the issue that is linked" |
Type support for event-modifiers
fix: Cannot register "capture" phase event handlers
Related
#9542
The downside is that there are multiple ways to declare modifiers in a template.