소스 검색

grid appendEditRow

luoyifan 3 년 전
부모
커밋
dce54e80b4
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      src/controls/grid.js

+ 3 - 2
src/controls/grid.js

@@ -142,9 +142,10 @@ export default function () {
             const records = this.add(record)
             const recNew = records[0]
             this.setSelection(records)
-            const ce = this.findPlugin('cellediting')
-            this.editingPlugin = ce
+
             if (typeof editRowCol === 'number') {
+                const ce = this.findPlugin('cellediting')
+                this.editingPlugin = ce
                 ce.startEdit(recNew, editRowCol)
             }
         },