SalesforceSalesforce
PDI · Question #200
PDI Question #200: Real Exam Question with Answer & Explanation
The correct answer is B: By default a custom event only propagates to its immediate container and to its immediate child. Lightning Web Component custom events can pass data using the detail property, and when configured to propagate, their scope is typically limited to bubbling up to their immediate container.
Submitted by ahmad_uae· Apr 18, 2026User Interface
Question
Which two characteristics are true for Lightning Web Component custom events? Choose 2 answers
Options
- AData may be passed In the payload of a custom event using a wire decorated properties.
- BBy default a custom event only propagates to its immediate container and to its immediate child
- CBy default a custom event only propagates to it's immediate container.
- DData may be passed in the payload of a custom event using a property called detail.
Explanation
Lightning Web Component custom events can pass data using the detail property, and when configured to propagate, their scope is typically limited to bubbling up to their immediate container.
Common mistakes.
- A. Data may not be passed in the payload of a custom event using
wiredecorated properties;wireis used for adapting a Salesforce function to a component's property or function, not for event payloads. - C. The default behavior for LWC custom events is
bubbles: falseandcomposed: false, meaning they do not propagate beyond the component that dispatches them, making the statement that they propagate to the immediate container by default incorrect.
Concept tested. LWC custom event propagation and data passing
Topics
#LWC Custom Events#Event Propagation#Component Communication#Event Data Payload
Community Discussion
No community discussion yet for this question.