mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-11-30 10:15:07 -05:00
Fix: prevent focus loss from change detection in cf query dropdown (#11409)
This commit is contained in:
parent
7b175ec1b3
commit
80be6793cf
@ -400,6 +400,9 @@ export class FilterEditorComponent
|
||||
|
||||
@Input()
|
||||
set filterRules(value: FilterRule[]) {
|
||||
if (value === this._filterRules) {
|
||||
return
|
||||
}
|
||||
this._filterRules = value
|
||||
|
||||
this.documentTypeSelectionModel.clear(false)
|
||||
@ -1098,7 +1101,13 @@ export class FilterEditorComponent
|
||||
rulesModified: boolean = false
|
||||
|
||||
updateRules() {
|
||||
this.filterRulesChange.next(this.filterRules)
|
||||
const updatedRules = this.filterRules
|
||||
this._filterRules = updatedRules
|
||||
this.rulesModified = filterRulesDiffer(
|
||||
this._unmodifiedFilterRules,
|
||||
updatedRules
|
||||
)
|
||||
this.filterRulesChange.next(updatedRules)
|
||||
}
|
||||
|
||||
get textFilter() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user