We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1ea63e commit de0bd6aCopy full SHA for de0bd6a
src/select-panel/index.tsx
@@ -177,7 +177,7 @@ const SelectPanel = () => {
177
const creationRef: any = useRef();
178
useKey([KEY.ENTER], handleOnCreateOption, { target: creationRef });
179
180
- const showCratable =
+ const showCreatable =
181
isCreatable &&
182
searchText &&
183
!filteredOptions.some((e) => e?.value === searchText);
@@ -227,11 +227,11 @@ const SelectPanel = () => {
227
options={filteredOptions}
228
onClick={(_e, index) => handleItemClicked(index)}
229
/>
230
- ) : showCratable ? (
+ ) : showCreatable ? (
231
<li
232
onClick={handleOnCreateOption}
233
className="select-item creatable"
234
- tabIndex={skipIndex === 1 ? 0 : 1}
+ tabIndex={1}
235
ref={creationRef}
236
>
237
{`${t("create")} "${searchText}"`}
0 commit comments