Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Plat-Dev-201 Exam - Topic 1 Question 15 Discussion

Which Lightning Web Component custom event property settings enable the event to bubble up the containment hierarchy and crossthe Shadow DOM boundary?
C) bubbles: true, composed: true
A) bubbles: true, composed: false
B) bubbles: false, composed: false
D) bubbles: false, composed: true

Salesforce Plat-Dev-201 Exam - Topic 1 Question 15 Discussion

Actual exam question for Salesforce's Plat-Dev-201 exam
Question #: 15
Topic #: 1
[All Plat-Dev-201 Questions]

Which Lightning Web Component custom event property settings enable the event to bubble up the containment hierarchy and cross

the Shadow DOM boundary?

Show Suggested Answer Hide Answer
Suggested Answer: C

Why These Settings?

bubbles: true: Enables the event to propagate up the containment hierarchy.

composed: true: Allows the event to cross the Shadow DOM boundary.

Why Not Other Options?

Other combinations (e.g.,bubbles: false) prevent the event from propagating or crossing the Shadow DOM boundary.


Contribute your Thoughts:

0/2000 characters

Currently there are no comments in this discussion, be the first to comment!


Save Cancel