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

Function onOpenChange

packages/@react-spectrum/s2/src/DialogContainer.tsx:53–57  ·  view source on GitHub ↗
(isOpen: boolean)

Source from the content-addressed store, hash-verified

51 }
52
53 let onOpenChange = (isOpen: boolean) => {
54 if (!isOpen) {
55 onDismiss();
56 }
57 };
58
59 return (
60 <ModalContext.Provider value={{isOpen: !!child, onOpenChange}}>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected