How to check if the component has a custom event listener if the event is provided in the emits property? #8189
Replies: 1 comment 1 reply
-
This was closed as a duplicate by @samueleiche , but where is the duplicate? I can't find it. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Demo
If I provide the
emits
option with"click"
, then theonClick
gets removed from $attrs. Is there any way to check if the listener exists on the component?Beta Was this translation helpful? Give feedback.
All reactions