Merge pull request #31854 from karmats/react_aria_menubutton_close_on_blur

[react-aria-menubutton] Add closeOnBlur property to WrapperProps
This commit is contained in:
Sheetal Nandi
2019-01-03 09:08:09 -08:00
committed by GitHub

View File

@@ -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 <https://github.com/forabi>
// Chris Rohlfs <https://github.com/crohlfs>
// Mats Roshauw <https://github.com/karmats>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
@@ -33,6 +34,13 @@ export interface WrapperProps<T extends HTMLElement>
*/
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"];