We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74702b2 commit f3f1da0Copy full SHA for f3f1da0
src/editor/gui/grid.ts
@@ -177,11 +177,13 @@ export default class Grid<T extends GridRow> {
177
if (event.force) {
178
const selected = <number[]>this.element.getSelection();
179
180
- if (this.onDelete)
181
- this.onDelete(selected);
+ event.onComplete = () => {
+ if (this.onDelete)
182
+ this.onDelete(selected);
183
- for (let i = 0; i < this.element.records.length; i++)
184
- this.element.records[i]['recid'] = i;
+ for (let i = 0; i < this.element.records.length; i++)
185
+ this.element.records[i]['recid'] = i;
186
+ }
187
}
188
},
189
0 commit comments