react-virtualized: Allow null tabIndex (#24777)

This commit is contained in:
Maciej Goszczycki
2018-04-09 18:23:36 +01:00
committed by Mohamed Hegazy
parent 089d570806
commit 7fa673a804
5 changed files with 5 additions and 4 deletions

View File

@@ -282,7 +282,7 @@ export type GridCoreProps = {
/** Optional inline style */
style?: React.CSSProperties;
/** Tab index for focus */
tabIndex?: number;
tabIndex?: number | null;
/**
* Width of Grid; this property determines the number of visible (vs virtualized) columns.
*/

View File

@@ -60,7 +60,7 @@ export type ListProps = GridCoreProps & {
/** Optional inline style */
style?: React.CSSProperties;
/** Tab index for focus */
tabIndex?: number;
tabIndex?: number | null;
/** Width of list */
width: number;
}

View File

@@ -45,7 +45,7 @@ export type MasonryProps = {
scrollingResetTimeInterval?: number,
scrollTop?: number,
style?: React.CSSProperties,
tabIndex?: number,
tabIndex?: number | null,
width: number,
/**
* PLEASE NOTE

View File

@@ -291,7 +291,7 @@ export type TableProps = GridCoreProps & {
/** Optional inline style */
style?: React.CSSProperties;
/** Tab index for focus */
tabIndex?: number;
tabIndex?: number | null;
/** Width of list */
width?: number;
}

View File

@@ -6,6 +6,7 @@
// Szőke Szabolcs <https://github.com/szabolcsx>
// Kræn Hansen <https://github.com/kraenhansen>
// Steve Zhang <https://github.com/Stevearzh>
// Maciej Goszczycki <https://github.com/mgoszcz2>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6