MCPcopy Index your code
hub / github.com/adobe/react-spectrum / getListbox

Method getListbox

packages/@react-aria/test-utils/src/select.ts:261–264  ·  view source on GitHub ↗

* Returns the select's listbox if present.

()

Source from the content-addressed store, hash-verified

259 * Returns the select's listbox if present.
260 */
261 getListbox(): HTMLElement | null {
262 let listBoxId = this.getTrigger().getAttribute('aria-controls');
263 return listBoxId ? document.getElementById(listBoxId) : null;
264 }
265
266 /**
267 * Returns the select's sections if present.

Callers 15

closeMethod · 0.95
findOptionMethod · 0.95
toggleOptionSelectionMethod · 0.95
getOptionsMethod · 0.95
getSectionsMethod · 0.95
ListBox.test.jsFile · 0.45
Select.test.jsFile · 0.45
ComboBox.test.jsFile · 0.45
ComboBox.test.jsFile · 0.45
Picker.test.jsFile · 0.45

Calls 1

getTriggerMethod · 0.95

Tested by

no test coverage detected