(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
This commit is contained in:
Dmitry S 2023-03-23 11:53:42 -04:00
parent 22dbab0123
commit 33c08057ad

View File

@ -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