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

Function onExpandedChange

packages/react-aria-components/src/Disclosure.tsx:187–193  ·  view source on GitHub ↗
(isExpanded)

Source from the content-addressed store, hash-verified

185 ...props,
186 isExpanded,
187 onExpandedChange(isExpanded) {
188 if (groupState) {
189 groupState.toggleKey(id);
190 }
191
192 props.onExpandedChange?.(isExpanded);
193 }
194 });
195
196 let panelRef = React.useRef<HTMLDivElement | null>(null);

Callers

nothing calls this directly

Calls 1

toggleKeyMethod · 0.65

Tested by

no test coverage detected