From 583149302e5415c3aedcd47554beb26ee1562f92 Mon Sep 17 00:00:00 2001 From: Collin Green Date: Tue, 24 Sep 2019 13:14:05 -0700 Subject: [PATCH] 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 --- types/react-bootstrap/index.d.ts | 1 + types/react-bootstrap/lib/Modal.d.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/types/react-bootstrap/index.d.ts b/types/react-bootstrap/index.d.ts index f026974a7b..88390bd741 100644 --- a/types/react-bootstrap/index.d.ts +++ b/types/react-bootstrap/index.d.ts @@ -15,6 +15,7 @@ // Andrew Makarov // Duong Tran // Erik Zivkovic +// Collin Green // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 diff --git a/types/react-bootstrap/lib/Modal.d.ts b/types/react-bootstrap/lib/Modal.d.ts index b59184eac6..4bb64a245a 100644 --- a/types/react-bootstrap/lib/Modal.d.ts +++ b/types/react-bootstrap/lib/Modal.d.ts @@ -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;