(core) Remove bool filtered rows immediately on change (#517)

* (core) Remove bool filtered rows immediately on change
This commit is contained in:
wunter8 2023-05-20 17:55:36 -06:00 committed by GitHub
parent 62b8f54672
commit e7933d7c59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -578,9 +578,10 @@ BaseView.prototype._saveEditRowField = function(editRowModel, colName, value) {
mainRowModel[colName](value); mainRowModel[colName](value);
} }
const ret = DataRowModel.prototype._saveField.call(editRowModel, colName, value) const ret = DataRowModel.prototype._saveField.call(editRowModel, colName, value)
// Display this rowId, even if it doesn't match the filter // Display this rowId, even if it doesn't match the filter,
// unless the filter is on a Bool column
.then((result) => { .then((result) => {
if (!this.isDisposed()) { if (!this.isDisposed() && this.currentColumn().pureType() !== 'Bool') {
this._sectionFilter.addTemporaryRow(rowId); this._sectionFilter.addTemporaryRow(rowId);
} }
return result; return result;