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.

feat: add float dom id to Comp (#4886)

YuHonga17a0419e3fb
diff --git a/packages/ui/src/views/components/dom/FloatDom.tsx b/packages/ui/src/views/components/dom/FloatDom.tsx
index ffc8acc06d..6b6f381853 100644
--- a/packages/ui/src/views/components/dom/FloatDom.tsx
+++ b/packages/ui/src/views/components/dom/FloatDom.tsx
@@ -94,7 +94,7 @@ const FloatDomSingle = memo((props: { layer: IFloatDom; id: string }) => {
};
}, [layer.position$, size$]);
- const component = useMemo(() => Component ? <Component {...layerProps} unitId={layer.unitId} /> : null, [Component, layerProps]);
+ const component = useMemo(() => Component ? <Component {...layerProps} unitId={layer.unitId} floatDomId={layer.id} /> : null, [Component, layerProps]);
if (!position) {
return null;