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

Function open

packages/react-stately/src/menu/useMenuTriggerState.ts:99–102  ·  view source on GitHub ↗
(focusStrategy: FocusStrategy | null = null)

Source from the content-addressed store, hash-verified

97 focusStrategy,
98 ...overlayTriggerState,
99 open(focusStrategy: FocusStrategy | null = null) {
100 setFocusStrategy(focusStrategy);
101 overlayTriggerState.open();
102 },
103 toggle(focusStrategy: FocusStrategy | null = null) {
104 setFocusStrategy(focusStrategy);
105 overlayTriggerState.toggle();

Callers 1

useSubmenuTriggerStateFunction · 0.70

Calls 1

openMethod · 0.65

Tested by

no test coverage detected