File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export interface IStyledProps {
22
22
export interface ISelectProps {
23
23
options : Option [ ] ;
24
24
value : Option [ ] ;
25
- focusSearchOnStart ?: boolean ;
25
+ focusSearchOnOpen ?: boolean ;
26
26
onChange ?;
27
27
valueRenderer ?: ( selected : Option [ ] , options : Option [ ] ) => string ;
28
28
ItemRenderer ?: Function ;
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ const MultiSelectBox = styled.div`
15
15
` ;
16
16
17
17
const MultiSelect = ( {
18
- focusSearchOnStart = true ,
18
+ focusSearchOnOpen = true ,
19
19
hasSelectAll = true ,
20
20
shouldToggleOnHover = false ,
21
21
options,
@@ -49,7 +49,7 @@ const MultiSelect = ({
49
49
onChange,
50
50
disabled,
51
51
disableSearch,
52
- focusSearchOnStart ,
52
+ focusSearchOnOpen ,
53
53
filterOptions,
54
54
overrideStrings
55
55
} }
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ interface ISelectPanelProps {
16
16
ItemRenderer ?: Function ;
17
17
options : Option [ ] ;
18
18
value : Option [ ] ;
19
- focusSearchOnStart : boolean ;
19
+ focusSearchOnOpen : boolean ;
20
20
selectAllLabel ?: string ;
21
21
onChange : ( selected : Option [ ] ) => void ;
22
22
disabled ?: boolean ;
@@ -53,12 +53,12 @@ export const SelectPanel = (props: ISelectPanelProps) => {
53
53
ItemRenderer,
54
54
disabled,
55
55
disableSearch,
56
- focusSearchOnStart ,
56
+ focusSearchOnOpen ,
57
57
hasSelectAll,
58
58
overrideStrings
59
59
} = props ;
60
60
const [ searchText , setSearchText ] = useState ( "" ) ;
61
- const [ focusIndex , setFocusIndex ] = useState ( focusSearchOnStart ? FocusType . SEARCH : FocusType . NONE ) ;
61
+ const [ focusIndex , setFocusIndex ] = useState ( focusSearchOnOpen ? FocusType . SEARCH : FocusType . NONE ) ;
62
62
63
63
const selectAllOption = {
64
64
label : selectAllLabel || getString ( "selectAll" , overrideStrings ) ,
@@ -123,7 +123,7 @@ export const SelectPanel = (props: ISelectPanelProps) => {
123
123
{ ! disableSearch && (
124
124
< SelectSearchContainer >
125
125
< input
126
- autoFocus = { focusSearchOnStart }
126
+ autoFocus = { focusSearchOnOpen }
127
127
placeholder = { getString ( "search" , overrideStrings ) }
128
128
type = "text"
129
129
aria-describedby = { getString ( "search" , overrideStrings ) }
You can’t perform that action at this time.
0 commit comments