liveBook · Manning

Bubble phase

The bubble phase is the event-propagation stage in which an event travels from its target through ancestor elements.

How 2 Manning books explain it

Vanilla Web

The event-propagation stage in which an event travels from its target back through ancestor elements.

How it is used
Guides where to attach DOM event listeners when ancestor elements need to react to an event.
How deep it goes
Explains propagation order and default listener phase through click-handler code, without descending into browser internals.
Examples
Uses a paragraph click, a list-level listener, and a bubbling custom event.
What you can do after
Apply it via addEventListener to place ancestor click handlers and distinguish the clicked target from the listener’s element.

Read how Vanilla Web explains bubble phase →

React Quickly, Second Edition

The bubble phase is the event-dispatch stage in which an event travels from its target element upward through its ancestors toward the window.

How it is used
Explains how browser events travel upward from a target through ancestor elements.
How deep it goes
Defines the dispatch order and phase values, but defers detailed React-specific event handling.
Examples
Uses a clicked black button, ancestor traversal, addEventListener, and eventPhase values.
What you can do after
Apply it via addEventListener and identify bubbling events with eventPhase.

Read how React Quickly, Second Edition explains bubble phase →

Related concepts

Questions about bubble phase

What is bubble phase?

The bubble phase is the event-propagation stage in which an event travels from its target through ancestor elements.

Which Manning books explain bubble phase?

Vanilla Web and React Quickly, Second Edition.

What is bubble phase part of?

Bubble phase is part of event propagation. Event propagation is the process by which an event travels through a hierarchy of elements during capture, target, and bubbling phases.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.