MCPcopy Create free account
hub / github.com/adobe/react-spectrum / getTrigger

Method getTrigger

packages/@react-aria/test-utils/src/dialog.ts:141–147  ·  view source on GitHub ↗

* Returns the dialog's trigger.

()

Source from the content-addressed store, hash-verified

139 * Returns the dialog's trigger.
140 */
141 getTrigger(): HTMLElement {
142 if (!this._trigger) {
143 throw new Error('No trigger element found for dialog.');
144 }
145
146 return this._trigger;
147 }
148
149 /**
150 * Returns the dialog if present.

Callers 1

openMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected