Which Lightning Web Component custom event property settings enable the event to bubble up the containment hierarchy and cross
the Shadow DOM boundary?
Suggested Answer: C
Get Premium Plat-Dev-201 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
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.
14 comments · newest first
MA
Mabel
23 hours ago
Definitely C, no doubt about it!
AL
Alease
6 days ago
Wait, can events really cross the Shadow DOM? That's wild!
SH
Shenika
11 days ago
No way, I thought composed had to be false for it to bubble!
KE
Keneth
16 days ago
I thought it was A) at first, but C makes more sense.
JA
Jacquelyne
22 days ago
It's C) bubbles: true, composed: true for sure!
RE
Rebecka
27 days ago
Nah, I think it’s A) that does the trick.
BO
Bok
1 month ago
Bubbles and composed both need to be true for that!
MI
Mindy
1 month ago
Wait, are you sure about that?
CR
Craig
1 month ago
Totally agree, that's the way to go!
AR
Arleen
2 months ago
C) bubbles: true, composed: true is correct!
FA
Fabiola
2 months ago
I keep mixing up the definitions, but I think D is wrong because it doesn't allow bubbling. I should have reviewed this more before the exam!
DE
Deandrea
2 months ago
I practiced a similar question, and I remember that composed needs to be true for the event to cross the Shadow DOM. So, I think C is definitely a strong candidate.
ES
Esteban
2 months ago
I'm not entirely sure, but I feel like option A could be right since it allows bubbling, but I'm confused about the composed part.
LI
Lisha
2 months ago
I think the answer might be C because I remember that for an event to bubble and cross the Shadow DOM, both properties need to be true.