Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

fix(web): prevent multi-select popover from closing on first selection (#17310)

chanx3dc298dbf546
diff --git a/web/src/components/ui/multi-select.tsx b/web/src/components/ui/multi-select.tsx
index d2a191b3e8..8e80750d49 100644
--- a/web/src/components/ui/multi-select.tsx
+++ b/web/src/components/ui/multi-select.tsx
@@ -442,6 +442,7 @@ export const MultiSelect = React.forwardRef<
className="w-auto p-0"
align="start"
onEscapeKeyDown={() => setIsPopoverOpen(false)}
+ onFocusOutside={(event) => event.preventDefault()}
data-testid={popoverTestId}
>
<Command className="p-5 pb-8" shouldFilter={shouldFilter}>