Grid.removeItem issue
This commit is contained in:
1 parent
fc61731c7d
commit
b5fd20aa2c
3 files changed
+12
-4
No files matched your search
+3
-2
@@ -200,6 +200,7 @@ export class Grid {
|
||||
}
|
||||
}
|
||||
this.reload();
|
||||
return item;
|
||||
}
|
||||
|
||||
removeItem(index) {
|
||||
@@ -213,11 +214,11 @@ export class Grid {
|
||||
if (this._var.colAttrs.__filtered === true) {
|
||||
this._var.source.splice(it.__index, 1);
|
||||
}
|
||||
for (let i = it.__index + 1; i < this._var.source.length; --i) {
|
||||
for (let i = it.__index; i < this._var.source.length; ++i) {
|
||||
this._var.source[i].__index -= 1;
|
||||
}
|
||||
this.reload();
|
||||
return item;
|
||||
return it.values;
|
||||
}
|
||||
|
||||
_refreshSource(list) {
|
||||
|
||||
Reference in new issue
Block a user