(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
pull/472/head
Dmitry S 1 year ago
parent 22dbab0123
commit 33c08057ad

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

Loading…
Cancel
Save