mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
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:
10
types/react-aria-menubutton/index.d.ts
vendored
10
types/react-aria-menubutton/index.d.ts
vendored
@@ -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"];
|
||||
|
||||
Reference in New Issue
Block a user