From 4eafef429499475d5a50c037a6a7ec461ed85760 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nicole=20miko=C5=82ajczyk?= Date: Thu, 26 Feb 2026 12:59:08 +0100 Subject: [PATCH] nicolium: it's better i think MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk --- packages/pl-fe/src/components/ui/multiselect.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/pl-fe/src/components/ui/multiselect.tsx b/packages/pl-fe/src/components/ui/multiselect.tsx index 3f4fae048..5878792b5 100644 --- a/packages/pl-fe/src/components/ui/multiselect.tsx +++ b/packages/pl-fe/src/components/ui/multiselect.tsx @@ -171,7 +171,8 @@ const Multiselect: React.FC = ({ 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();