mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
(core) Editor position wasn't restored on a long list
Summary: Editor position wasn't restored on a long list, where the rows haven't been shown yet (the scroll haven't happend yet). Test Plan: Browser tests Reviewers: dsagal Reviewed By: dsagal Differential Revision: https://phab.getgrist.com/D2823
This commit is contained in:
parent
e3a957a715
commit
79497a7e79
@ -654,6 +654,10 @@ export class GristDoc extends DisposableWithEvents {
|
||||
// TODO: column selection not working on card/detail view, or getting overridden -
|
||||
// look into it (not a high priority for now since feature not easily discoverable
|
||||
// in this view).
|
||||
|
||||
// even though the cursor is at right place, the scroll could not have yet happened
|
||||
// wait for a bit (scroll is done in a setTimeout 0)
|
||||
await delay(0);
|
||||
} catch (e) {
|
||||
console.debug(`_recursiveMoveToCursorPos(${JSON.stringify(cursorPos)}): ${e}`);
|
||||
throw new UserError('There was a problem finding the desired cell.');
|
||||
|
Loading…
Reference in New Issue
Block a user