From 4ac28861b9c93da1f4a8e0a64c9412f302ce4d49 Mon Sep 17 00:00:00 2001 From: Mats Roshauw Date: Thu, 3 Jan 2019 10:12:19 +0100 Subject: [PATCH] Add closeOnBlur property to WrapperProps --- types/react-aria-menubutton/index.d.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/types/react-aria-menubutton/index.d.ts b/types/react-aria-menubutton/index.d.ts index 3bfc68259e..157fdff642 100644 --- a/types/react-aria-menubutton/index.d.ts +++ b/types/react-aria-menubutton/index.d.ts @@ -1,7 +1,8 @@ -// Type definitions for react-aria-menubutton 5.1 +// Type definitions for react-aria-menubutton 6.1 // Project: https://github.com/davidtheclark/react-aria-menubutton // Definitions by: Muhammad Fawwaz Orabi // Chris Rohlfs +// Mats Roshauw // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 @@ -33,6 +34,13 @@ export interface WrapperProps */ closeOnSelection?: boolean; + /** + * By default, it does automatically close. + * If false, the menu will not automatically close when it + * blurs. Default: `true`. + */ + closeOnBlur?: boolean; + isOpen?: boolean; tag?: T["tagName"];