From 33c08057ad5dec02a1f3359675cde519e0c23d9d Mon Sep 17 00:00:00 2001 From: Dmitry S Date: Thu, 23 Mar 2023 11:53:42 -0400 Subject: [PATCH] (core) Bug fix: when on Raw Data popup, clicks on cells shouldn't navigate the page Test Plan: Added a test check that fails without the fix Reviewers: paulfitz Reviewed By: paulfitz Subscribers: paulfitz Differential Revision: https://phab.getgrist.com/D3831 --- app/client/components/GristDoc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/client/components/GristDoc.ts b/app/client/components/GristDoc.ts index 24424bec..497bfdb9 100644 --- a/app/client/components/GristDoc.ts +++ b/app/client/components/GristDoc.ts @@ -524,7 +524,7 @@ export class GristDoc extends DisposableWithEvents { } public async setCursorPos(cursorPos: CursorPos) { - if (cursorPos.sectionId) { + if (cursorPos.sectionId && cursorPos.sectionId !== this.externalSectionId.get()) { const desiredSection: ViewSectionRec = this.docModel.viewSections.getRowModel(cursorPos.sectionId); if (desiredSection.view.peek().getRowId() !== this.activeViewId.get()) { // This may be asynchronous. In other cases, the change is synchronous, and some code