File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ const SelectPanel = () => {
177
177
const creationRef : any = useRef ( ) ;
178
178
useKey ( [ KEY . ENTER ] , handleOnCreateOption , { target : creationRef } ) ;
179
179
180
- const showCratable =
180
+ const showCreatable =
181
181
isCreatable &&
182
182
searchText &&
183
183
! filteredOptions . some ( ( e ) => e ?. value === searchText ) ;
@@ -227,11 +227,11 @@ const SelectPanel = () => {
227
227
options = { filteredOptions }
228
228
onClick = { ( _e , index ) => handleItemClicked ( index ) }
229
229
/>
230
- ) : showCratable ? (
230
+ ) : showCreatable ? (
231
231
< li
232
232
onClick = { handleOnCreateOption }
233
233
className = "select-item creatable"
234
- tabIndex = { skipIndex === 1 ? 0 : 1 }
234
+ tabIndex = { 1 }
235
235
ref = { creationRef }
236
236
>
237
237
{ `${ t ( "create" ) } "${ searchText } "` }
You can’t perform that action at this time.
0 commit comments