From e9bbee46107eada167c0668a3e99b6034d0c77ff Mon Sep 17 00:00:00 2001 From: Gabrielle Dias Date: Mon, 26 Aug 2019 11:33:27 -0400 Subject: [PATCH] react-aria-modal: Changes to onExit, it should be optional (#37785) --- types/react-aria-modal/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-aria-modal/index.d.ts b/types/react-aria-modal/index.d.ts index ae56a6deac..292d0b50dd 100644 --- a/types/react-aria-modal/index.d.ts +++ b/types/react-aria-modal/index.d.ts @@ -164,7 +164,7 @@ export interface AriaModalProps { * That also makes it easier to create your own "close modal" buttons; because you * have the function that closes the modal right there, written by you, at your disposal. */ - onExit(): any; + onExit?(): any; /** * If true, the modal dialog's focus trap will be paused.