mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Scrolling to the active record when editor is activated
Summary: When an editor is activated by typing, the active view should be scrolled to the active record. Test Plan: new tests Reviewers: georgegevoian Reviewed By: georgegevoian Differential Revision: https://phab.getgrist.com/D3196
This commit is contained in:
@@ -314,7 +314,7 @@ class FinderImpl implements IFinder {
|
||||
if (this._aborted) { return; }
|
||||
// Make sure we are at good place. This is important when the cursor
|
||||
// was already in a matched record, but the record was scrolled away.
|
||||
await viewInstance.revealActiveRecord();
|
||||
viewInstance.scrollToCursor(true).catch(reportError);
|
||||
|
||||
const cursor = viewInstance.viewPane.querySelector('.selected_cursor');
|
||||
if (cursor) {
|
||||
|
||||
Reference in New Issue
Block a user