You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current implementation of Custom Elements lets defined emits dispatch a CustomEvent with the arg put in details.
However there is no way to allow these events to bubble.
In a custom element created via `defineCustomElement`, if the first
event argument is an object, it will be used as the options object
for the emitted CustomEvent. The entire argument list is still exposed
via the CustomEvent's `detail` property.
```js
emit('event', { bubbles: true })
```
close#7605
What problem does this feature solve?
The current implementation of Custom Elements lets defined emits dispatch a CustomEvent with the arg put in details.
However there is no way to allow these events to bubble.
Current code snippet from the sourcecode:
As described in the documentation here: https://vuejs.org/guide/extras/web-components.html#events
However there is no way to define the
bubbles
property in the CustomEvent.What does the proposed API look like?
It could be as simple as checking if there is a property called
bubbles
in the args and pass that in, otherwise default to false.The text was updated successfully, but these errors were encountered: