Fix multi-select in headers did not trigger update when a tag was removed

Value got passed around by reference, so as soon as the value was changed, activeFilters had the updated value.  Now just leaving applyFilters() to do the check.
This commit is contained in:
nathan 2023-04-14 15:22:58 -06:00
parent ba46b48206
commit 5781542cab

View File

@ -3942,8 +3942,8 @@ export class et2_nextmatch_header_bar extends et2_DOMWidget implements et2_INext
}
}
// Update filters, if the value is different and we're not already doing so
if((result || typeof result === 'undefined') && entry != _widget.getValue() && !header.update_in_progress)
// Update filters, if we're not already doing so
if((result || typeof result === 'undefined') && !header.update_in_progress)
{
// Widget will not have an entry in getValues() because nulls
// are not returned, we remove it from activeFilters