nicolium: it's better i think

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-02-26 12:59:08 +01:00
parent 25f1375469
commit 4eafef4294

View File

@ -171,7 +171,8 @@ const Multiselect: React.FC<IMultiselect> = ({
switch (e.key) {
case 'ArrowUp':
e.preventDefault();
options[Math.max(index - 1, 0) as any]?.focus();
if (index === 0) searchBoxRef.current?.focus();
else options[Math.max(index - 1, 0) as any]?.focus();
break;
case 'ArrowDown':
e.preventDefault();