Skip to content

Commit 6423ff8

Browse files
authored
fix(sheets-hyper-link): update hyper link fail (#4057)
1 parent 1cbabd7 commit 6423ff8

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

packages/sheets-data-validation-ui/src/views/components/formula-input/custom-formula-input.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ export function CustomFormulaInput(props: IFormulaInputProps) {
4949
errorText={formula1Res}
5050
onFocus={() => isFocusFormulaEditorSet(true)}
5151
actions={formulaEditorActionsRef.current}
52+
isSupportAcrossSheet
5253
/>
5354
);
5455
}

packages/sheets-data-validation-ui/src/views/components/formula-input/list-formula-input.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ export function ListFormulaInput(props: IFormulaInputProps) {
356356
errorText={(formula1Res || localError) || undefined}
357357
onFocus={() => isFocusFormulaEditorSet(true)}
358358
actions={formulaEditorActionsRef.current}
359+
isSupportAcrossSheet
359360
/>
360361
<div ref={containerRef} style={{ marginTop: '12px' }}>
361362
{refFinalList.map((item) => {

packages/sheets-hyper-link/src/commands/commands/update-hyper-link.command.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ export const UpdateHyperLinkCommand: ICommand<IUpdateHyperLinkCommandParams> = {
4545
const hyperLinkModel = accessor.get(HyperLinkModel);
4646
const interceptorService = accessor.get(SheetInterceptorService);
4747

48-
const target = getSheetCommandTarget(instanceSrv);
48+
const target = getSheetCommandTarget(instanceSrv, {
49+
unitId: params.unitId,
50+
subUnitId: params.subUnitId,
51+
});
52+
4953
if (!target) return false;
5054

5155
const { payload: link, row, column, id } = params;

0 commit comments

Comments
 (0)