Closed LasaleFamine closed 7 years ago
We need to fix every dispatchEvent that contains the bubbles property.
dispatchEvent
bubbles
Currently we have a situation like:
this.dispatchEvent(new CustomEvent('event-name'), {bubbles: true});
The correct way to pass the bubbles property is instead:
correct
this.dispatchEvent(new CustomEvent('event-name', {bubbles: true, composed: true}));
Ref: EventInit
NOTE: the composed prop is necessary for Shadow-DOM: Handle and fire events
composed
We need to fix every
dispatchEvent
that contains thebubbles
property.Currently we have a situation like:
The
correct
way to pass thebubbles
property is instead:Ref: EventInit