Skip to content

Commit

Permalink
refactor: change name of the new property
Browse files Browse the repository at this point in the history
  • Loading branch information
ugur-vaadin committed Mar 27, 2024
1 parent 558ae39 commit 774cb53
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions packages/grid-pro/src/vaadin-grid-pro-edit-column-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const GridProEditColumnMixin = (superClass) =>
_oldRenderer: Function,

/** @private */
_editInitiatorChar: String,
_editInitiatorKey: String,
};
}

Expand Down Expand Up @@ -275,11 +275,11 @@ export const GridProEditColumnMixin = (superClass) =>
this._setEditorValue(editor, get(this.path, model.item));
editor._grid = this._grid;

const editInitiatorChar = this._editInitiatorChar;
this._editInitiatorChar = undefined;
const editInitiatorKey = this._editInitiatorKey;
this._editInitiatorKey = undefined;
requestAnimationFrame(() => {
if (editInitiatorChar) {
this._setEditorValue(editor, editInitiatorChar);
if (editInitiatorKey) {
this._setEditorValue(editor, editInitiatorKey);
this._focusEditor(editor);
} else {
this._focusEditor(editor);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ export const InlineEditingMixin = (superClass) =>
this._flushStopEdit();

if (type === 'text') {
column._editInitiatorChar = e.key;
column._editInitiatorKey = e.key;
}

this._startEdit(cell, column);
Expand Down

0 comments on commit 774cb53

Please sign in to comment.