|
@@ -131836,10 +131836,14 @@ define(['exports'], function (exports) { 'use strict';
|
|
|
return this.column.up('grid');
|
|
|
},
|
|
|
_lookupEditorRecord: function () {
|
|
|
- var _a, _b, _c;
|
|
|
+ var _a, _b, _c, _d;
|
|
|
// parentGrid.getSelectionModel().getLastSelected()
|
|
|
var grid = this._lookupGrid();
|
|
|
- var rowIdx = (_c = (_b = (_a = grid.editingPlugin) === null || _a === void 0 ? void 0 : _a.activeEditor) === null || _b === void 0 ? void 0 : _b.context) === null || _c === void 0 ? void 0 : _c.rowIdx;
|
|
|
+ var editingPlugin = (_a = grid.editingPlugin) !== null && _a !== void 0 ? _a : (_b = grid.ownerGrid) === null || _b === void 0 ? void 0 : _b.editingPlugin;
|
|
|
+ if (!editingPlugin) {
|
|
|
+ return grid.getSelectionModel().getLastSelected();
|
|
|
+ }
|
|
|
+ var rowIdx = (_d = (_c = editingPlugin.activeEditor) === null || _c === void 0 ? void 0 : _c.context) === null || _d === void 0 ? void 0 : _d.rowIdx;
|
|
|
if (lodash.isNumber(rowIdx)) {
|
|
|
return grid.store.getAt(rowIdx);
|
|
|
}
|