From fb30b2cb8b48a840f4d932b5154cd6ea63e11d72 Mon Sep 17 00:00:00 2001 From: "U-SWRI16\\svogel" Date: Tue, 1 Aug 2017 14:02:54 -0500 Subject: [PATCH] Adding getRef to focusable components per 3.8.1 --- types/reactstrap/lib/Button.d.ts | 1 + types/reactstrap/lib/CardLink.d.ts | 1 + types/reactstrap/lib/Form.d.ts | 1 + types/reactstrap/lib/Input.d.ts | 1 + types/reactstrap/lib/NavLink.d.ts | 1 + 5 files changed, 5 insertions(+) diff --git a/types/reactstrap/lib/Button.d.ts b/types/reactstrap/lib/Button.d.ts index be4d1c50d6..e6ec222c14 100644 --- a/types/reactstrap/lib/Button.d.ts +++ b/types/reactstrap/lib/Button.d.ts @@ -7,6 +7,7 @@ interface Props extends React.HTMLProps { color?: string; disabled?: boolean; tag?: React.ReactType; + getRef?: string | ((instance: HTMLButtonElement) => any); onClick?: React.MouseEventHandler; size?: any; diff --git a/types/reactstrap/lib/CardLink.d.ts b/types/reactstrap/lib/CardLink.d.ts index 62efc4efc6..3edf6b24f8 100644 --- a/types/reactstrap/lib/CardLink.d.ts +++ b/types/reactstrap/lib/CardLink.d.ts @@ -2,6 +2,7 @@ import { CSSModule } from '../index'; interface Props { tag?: React.ReactType; + getRef?: string | ((instance: HTMLButtonElement) => any); className?: string; cssModule?: CSSModule; href?: string; diff --git a/types/reactstrap/lib/Form.d.ts b/types/reactstrap/lib/Form.d.ts index 1c10cfe54a..dd06a2f855 100644 --- a/types/reactstrap/lib/Form.d.ts +++ b/types/reactstrap/lib/Form.d.ts @@ -3,6 +3,7 @@ import { CSSModule } from '../index'; interface Props extends React.HTMLProps { inline?: boolean; tag?: React.ReactType; + getRef?: string | ((instance: HTMLButtonElement) => any); className?: string; cssModule?: CSSModule; } diff --git a/types/reactstrap/lib/Input.d.ts b/types/reactstrap/lib/Input.d.ts index 38a83a49f6..406a25c6d2 100644 --- a/types/reactstrap/lib/Input.d.ts +++ b/types/reactstrap/lib/Input.d.ts @@ -38,6 +38,7 @@ interface InputProps extends Intermediate { size?: string; state?: string; tag?: React.ReactType; + getRef?: string | ((instance: HTMLButtonElement) => any); addon?: boolean; className?: string; cssModule?: CSSModule; diff --git a/types/reactstrap/lib/NavLink.d.ts b/types/reactstrap/lib/NavLink.d.ts index 0c90c104bb..2871fad72e 100644 --- a/types/reactstrap/lib/NavLink.d.ts +++ b/types/reactstrap/lib/NavLink.d.ts @@ -2,6 +2,7 @@ import { CSSModule } from '../index'; interface Props extends React.HTMLProps { tag?: React.ReactType; + getRef?: string | ((instance: HTMLButtonElement) => any); disabled?: boolean; active?: boolean; className?: string;