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(ui): stop onblur propagation at root to prevent external focusout conflicts (#1894)

白熱04abb1b68237
diff --git a/packages/ui/src/views/App.tsx b/packages/ui/src/views/App.tsx
index 5a55a84ba0..664ca0121a 100644
--- a/packages/ui/src/views/App.tsx
+++ b/packages/ui/src/views/App.tsx
@@ -94,7 +94,7 @@ export function App(props: IUniverAppProps) {
* all focusin event merged from its descendants. The DesktopLayoutService would listen to focusin events
* bubbled to this element and refocus the input element.
*/}
- <div className={styles.appLayout} tabIndex={-1}>
+ <div className={styles.appLayout} tabIndex={-1} onBlur={(e) => e.stopPropagation()}>
{/* header */}
{header && (
<header className={styles.appContainerHeader}>