Skip to content

Commit 0e8c184

Browse files
committed
Ensure create item has correct tab index even when select all is disabled
1 parent a1ea63e commit 0e8c184

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/select-panel/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ const SelectPanel = () => {
231231
<li
232232
onClick={handleOnCreateOption}
233233
className="select-item creatable"
234-
tabIndex={skipIndex === 1 ? 0 : 1}
234+
tabIndex={skipIndex === 1 ? skipIndex : skipIndex - 1}
235235
ref={creationRef}
236236
>
237237
{`${t("create")} "${searchText}"`}

0 commit comments

Comments
 (0)