Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

fix: pop up wrong position after click on toolbar-more icon (#6343)

Roman Sergeevd7868077902a
diff --git a/packages/ui/src/views/components/ribbon/Ribbon.tsx b/packages/ui/src/views/components/ribbon/Ribbon.tsx
index 8b65dbaef1..38157a6dee 100644
--- a/packages/ui/src/views/components/ribbon/Ribbon.tsx
+++ b/packages/ui/src/views/components/ribbon/Ribbon.tsx
@@ -354,6 +354,7 @@ export function Ribbon(props: IRibbonProps) {
>
<Dropdown
collisionPadding={{ right: 12, left: 12 }}
+ onOpenAutoFocus={(e) => e.preventDefault()}
overlay={(
<div
className={`