dropdown
A menu that opens to show a list of options when a button is activated, and closes when you pick one or click elsewhere.
In more detail
An accessible dropdown opens from a button, supports the arrow keys and closes with Escape. Closing on an outside click is a common use of document-level listeners and the capturing phase.
Related terms
- capturing phase — The first phase of event propagation, in which the event travels down from the window through each ancestor toward the target.
- widget — A self-contained interactive piece of an interface, such as a tab panel, date picker or accordion.
Taught in
- Event Phases: Capturing, Target And Bubbling Demystified — Frontend Architecture & Web Platform