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.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
fix: context menu disable status (#2943)
Ran Luo510c1785d56e
diff --git a/packages/docs-ui/src/controllers/menu/context-menu.ts b/packages/docs-ui/src/controllers/menu/context-menu.tsindex af25dad125..88f6f07b93 100644--- a/packages/docs-ui/src/controllers/menu/context-menu.ts+++ b/packages/docs-ui/src/controllers/menu/context-menu.ts@@ -70,7 +70,7 @@ const getDisableWhenSelectionNotInTableObservable = (accessor: IAccessor) => {if (tables && tables.length) {if (tables.some((table) => {const { startIndex, endIndex } = table;- return (startOffset >= startIndex && startOffset <= endIndex) || (endOffset >= startIndex && endOffset <= endIndex);+ return (startOffset > startIndex && startOffset < endIndex) || (endOffset > startIndex && endOffset < endIndex);})) {subscriber.next(false);return;