react-bootstrap: add restoreFocus prop to Modal (#38424)

The `restoreFocus` prop was added to react-bootstrap in this commit from
2017 that was first released in v0.30.8.

https://github.com/react-bootstrap/react-bootstrap/commit/bd76a90d4780c834b4620c423e38b40c66a80882
This commit is contained in:
Collin Green
2019-09-24 13:14:05 -07:00
committed by Michael Crane
parent 6f37606fa1
commit 583149302e
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -15,6 +15,7 @@
// Andrew Makarov <https://github.com/r3nya>
// Duong Tran <https://github.com/t49tran>
// Erik Zivkovic <https://github.com/bes>
// Collin Green <https://github.com/collingreen>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
+1
View File
@@ -26,6 +26,7 @@ declare namespace Modal {
dialogComponent?: any; // TODO: Add more specific type
dialogTransitionTimeout?: number;
enforceFocus?: boolean;
restoreFocus?: boolean;
keyboard?: boolean;
onBackdropClick?: (node: HTMLElement) => any;
onEscapeKeyDown?: (node: HTMLElement) => any;