Fix some nextmatch bugs

- Removed rows could still have jQuery actions bound, resulting in errors
- Focused row was not cleared if it was removed, resulting in errors
- Fixed double get_rows call on refresh(..., update)
This commit is contained in:
nathangray
2020-08-08 10:51:39 -06:00
parent 6567e39668
commit 036ec20769
5 changed files with 13 additions and 13 deletions

View File

@ -133,6 +133,11 @@ var et2_dataview_selectionManager = /** @class */ (function () {
if (typeof this._registeredRows[_uid] !== "undefined"
&& this._registeredRows[_uid].tr === _tr) {
this._inUpdate = true;
// Don't leave focusedEntry
// @ts-ignore
if (this._focusedEntry !== null && this._focusedEntry.uid == _uid) {
this.setFocused(_uid, false);
}
this._registeredRows[_uid].tr = null;
this._registeredRows[_uid].aoi = null;
// Remove the action object from its container