Skip to content

Commit a9cb99d

Browse files
committed
fix ts define
1 parent bc567e1 commit a9cb99d

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

src/Selector/MultipleSelector.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ const SelectSelector: React.FC<SelectorProps> = ({
4141
showSearch,
4242
autoFocus,
4343
accessibilityIndex,
44+
tabIndex,
4445

4546
removeIcon,
4647
choiceTransitionName,
@@ -170,6 +171,7 @@ const SelectSelector: React.FC<SelectorProps> = ({
170171
value={searchValue}
171172
onKeyDown={onInputKeyDown}
172173
onChange={onInputChange}
174+
tabIndex={tabIndex}
173175
/>
174176

175177
{/* Measure Node */}

src/Selector/SingleSelector.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ const SingleSelector: React.FC<SelectorProps> = ({
2020
open,
2121
values,
2222
placeholder,
23+
tabIndex,
2324

2425
showSearch,
2526
searchValue,
@@ -55,6 +56,7 @@ const SingleSelector: React.FC<SelectorProps> = ({
5556
value={inputValue}
5657
onKeyDown={onInputKeyDown}
5758
onChange={onInputChange}
59+
tabIndex={tabIndex}
5860
/>
5961
</span>
6062

src/Selector/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export interface InnerSelectorProps {
2929
searchValue: string;
3030
accessibilityIndex: number;
3131
open: boolean;
32+
tabIndex?: number;
3233

3334
onInputKeyDown: React.KeyboardEventHandler<HTMLInputElement | HTMLTextAreaElement>;
3435
onInputChange: React.ChangeEventHandler<HTMLInputElement | HTMLTextAreaElement>;
@@ -54,6 +55,7 @@ export interface SelectorProps {
5455

5556
autoFocus?: boolean;
5657
accessibilityIndex: number;
58+
tabIndex?: number;
5759
disabled?: boolean;
5860
placeholder?: React.ReactNode;
5961
removeIcon?: RenderNode;

0 commit comments

Comments
 (0)