QuestionQ15

VerifiedBasic Lightning Web Component Development

Which two event settings are necessary for a custom event named CustomEvent to fire from a Lightning web component and propagate upward through the DOM?

Choose two
Explanation

A custom Lightning Web Components event needs bubbles: true to move upward through the DOM and composed: true to pass through shadow DOM boundaries. The cancelable setting affects cancellation, not propagation.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!