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

Method getTrigger

packages/@react-aria/test-utils/src/menu.ts:425–431  ·  view source on GitHub ↗

* Returns the menu's trigger.

()

Source from the content-addressed store, hash-verified

423 * Returns the menu's trigger.
424 */
425 getTrigger(): HTMLElement {
426 if (!this._trigger) {
427 throw new Error('No trigger element found for menu.');
428 }
429
430 return this._trigger;
431 }
432
433 /**
434 * Returns the menu if present.

Callers 15

openMethod · 0.95
toggleOptionSelectionMethod · 0.95
openSubmenuMethod · 0.95
closeMethod · 0.95
getMenuMethod · 0.95
Select.test.jsFile · 0.45
Menu.test.tsxFile · 0.45
AriaMenuTestsFunction · 0.45
ComboBox.test.jsFile · 0.45
Picker.test.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected