Additional event arguments of CustomEvent on the custom element. #7627
zh-lx
started this conversation in
General Discussions
Replies: 1 comment
-
Unsubscribe
…On Thu, Feb 2, 2023 at 03:14 zhoulixiang ***@***.***> wrote:
When use this.$emit or setup emit on the custom element, additional event
arguments (payload) will be exposed as an array on the CustomEvent object
as its detail property.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
When use
this.$emit
or setupemit
on the custom element, additional event arguments (payload) will be exposed as an array on the CustomEvent object as its detail property. But in standard jsCustomElement
api, thedetail
property can be any type. So I think when we only pass one additional event argument, it shouldn't be an array.Beta Was this translation helpful? Give feedback.
All reactions