Skip to content

Commit 700db41

Browse files
authored
Merge pull request #900 from IgniteUI/sstoychev/updating-versions
fix(grid): changing sample based on new props
2 parents 862ed79 + 2f29ea6 commit 700db41

File tree

1 file changed

+3
-3
lines changed
  • samples/grids/grid/editing-columns/src

1 file changed

+3
-3
lines changed

samples/grids/grid/editing-columns/src/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@ export default class Sample extends React.Component<any, any> {
118118
return this._componentRenderer;
119119
}
120120

121-
public webGridOnEditEnter(s: IgrGridBaseDirective, e: IgrGridEditEventArgs): void {
121+
public webGridOnEditEnter(e: IgrGridEditEventArgs): void {
122122

123-
const column = s.getColumnByVisibleIndex(e.detail.cellID.columnID);
123+
const column = e.detail.owner.getColumnByVisibleIndex(e.detail.cellID.columnID);
124124
if(column.field === 'ReorderLevel') {
125125
setTimeout(() => {
126126
const rowId = e.detail.cellID.rowID;
@@ -145,7 +145,7 @@ export default class Sample extends React.Component<any, any> {
145145
id={inputTemplateId}
146146
name={cell.id.rowID}
147147
value={cell.editValue}
148-
inputOcurred={(s:any, e: any) => {
148+
onInput={(e: CustomEvent<string>) => {
149149
cell.editValue = e.detail;
150150
}}
151151
style={{width: "100%"}}

0 commit comments

Comments
 (0)