-
Notifications
You must be signed in to change notification settings - Fork 38
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
Set default options for dispatchCustomEvent #126
Comments
In most cases, we want this behavior, but isn't that a breaking change? |
I'm wondering whether we really should be overwriting the DOM here. Making => To me it's a bugfix. What I do know for sure is that we shouldn't make |
@pago agreed. I cannot come up with a case that I would set the |
Explain the problem
The usage of
dispatchCustomEvent
accepts 3 arguments:I think that in almost every case
dispatchCustomEvent
will be used for communicating with a parent component and therefore we need to set thebubbles: true
option manually.I searched in our current codebase for usage of
dispatchCustomEvent
:bubbles: true
cancelable: true
Expected Behaviour
I would like to see at least the
bubbles: true
as a default option. Maybe it makes sense to setcancelable: true
as well.Actual Behaviour
Set all options manually inside the options object.
The text was updated successfully, but these errors were encountered: