diff --git a/packages/sheets-ui/src/views/dropdown/list-dropdown/index.tsx b/packages/sheets-ui/src/views/dropdown/list-dropdown/index.tsx index 02dea77df3..68e613474b 100644 --- a/packages/sheets-ui/src/views/dropdown/list-dropdown/index.tsx +++ b/packages/sheets-ui/src/views/dropdown/list-dropdown/index.tsx @@ -37,7 +37,7 @@ import { WorkbookEditablePermission, WorksheetEditPermission, } from '@univerjs/sheets'; -import { RectPopup, useDependency } from '@univerjs/ui'; +import { useDependency } from '@univerjs/ui'; import { useEffect, useMemo, useState } from 'react'; import { IEditorBridgeService } from '../../../services/editor-bridge.service'; @@ -191,7 +191,7 @@ export interface IListDropdownProps { } export function ListDropDown(props: { popup: IPopup }) { - const { popup: { extraProps } } = props; + const { popup: { extraProps, anchorRect } } = props; const { location, hideFn, onChange, onEdit, options, defaultValue, multiple, showEdit } = extraProps!; const { worksheet } = location; const [editingText, setEditingText] = useState(''); @@ -200,8 +200,7 @@ export function ListDropDown(props: { popup: IPopup { const dispose = commandService.onCommandExecuted((command) => {