mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) When a checkbox is clicked on a new record, set default values determined by linking
Summary: Fixes a bug (reported in https://community.getgrist.com/t/bug-toggle-column-in-linking-widget-not-triggering-default-value/1657) Test Plan: Added a test case that fails without this fix. Reviewers: georgegevoian Reviewed By: georgegevoian Differential Revision: https://phab.getgrist.com/D3699
This commit is contained in:
@@ -54,9 +54,9 @@ export class Cursor extends Disposable {
|
||||
|
||||
// Command to be manually triggered on cell selection. Moves the cursor to the selected cell.
|
||||
// This is overridden by the formula editor to insert "$col" variables when clicking cells.
|
||||
setCursor(this: Cursor, rowModel: BaseRowModel, colModel: BaseRowModel) {
|
||||
setCursor(this: Cursor, rowModel: BaseRowModel, fieldModel: BaseRowModel) {
|
||||
this.rowIndex(rowModel ? rowModel._index() : 0);
|
||||
this.fieldIndex(colModel ? colModel._index()! : 0);
|
||||
this.fieldIndex(fieldModel ? fieldModel._index()! : 0);
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user