mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
(core) Prevent error when there are no visible columns
Test Plan: Set all columns to hidden and reloaded document. Reviewers: dsagal Reviewed By: dsagal Differential Revision: https://phab.getgrist.com/D2832
This commit is contained in:
parent
d1c1416d78
commit
7758cb830d
@ -969,7 +969,8 @@ GridView.prototype.buildDom = function() {
|
||||
|
||||
/** @inheritdoc */
|
||||
GridView.prototype.onResize = function() {
|
||||
if (this.activeFieldBuilder().isEditorActive()) {
|
||||
const activeFieldBuilder = this.activeFieldBuilder();
|
||||
if (activeFieldBuilder && activeFieldBuilder.isEditorActive()) {
|
||||
// When the editor is active, the common case for a resize is if the virtual keyboard is being
|
||||
// shown on mobile device. In that case, we need to scroll active cell into view, and need to
|
||||
// do it synchronously, to allow repositioning the editor to it in response to the same event.
|
||||
|
Loading…
Reference in New Issue
Block a user