From 9c03e5f170e330b11f1d9ca04aa9fbda0733bf79 Mon Sep 17 00:00:00 2001 From: kilya11 Date: Wed, 23 Oct 2019 09:26:33 +0200 Subject: [PATCH 1/2] Set number type for the tabIndex prop #44 --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 7c929a4..7d48cef 100644 --- a/index.d.ts +++ b/index.d.ts @@ -14,7 +14,7 @@ export interface Props { onBlur?: (e: React.FocusEvent) => void, onChange?: (e: Event) => void, onClick?: (e: React.MouseEvent) => void, - tabIndex?: string | number, + tabIndex?: number, readOnly?: boolean, autoFocus?: boolean, value?: any, From 4a84a6012a0023269e7de4a2b06f90513b5c9830 Mon Sep 17 00:00:00 2001 From: kilya11 Date: Wed, 23 Oct 2019 09:52:49 +0200 Subject: [PATCH 2/2] Set number type for tabIndex https://github.com/react-component/checkbox/issues/44 --- src/Checkbox.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Checkbox.jsx b/src/Checkbox.jsx index 1d22293..df02aa0 100644 --- a/src/Checkbox.jsx +++ b/src/Checkbox.jsx @@ -18,7 +18,7 @@ class Checkbox extends Component { onBlur: PropTypes.func, onChange: PropTypes.func, onClick: PropTypes.func, - tabIndex: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), + tabIndex: PropTypes.number, readOnly: PropTypes.bool, autoFocus: PropTypes.bool, value: PropTypes.any,