mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-11 17:17:26 +01:00
Add timeout for clearing last search term on select blur
This commit is contained in:
parent
52bc1a62e1
commit
8ddb3e80b7
4 changed files with 16 additions and 2 deletions
|
|
@ -63,4 +63,10 @@ export class SelectComponent extends AbstractInputComponent<number> {
|
|||
this._lastSearchTerm = $event.term
|
||||
}
|
||||
|
||||
onBlur() {
|
||||
setTimeout(() => {
|
||||
this._lastSearchTerm = null
|
||||
}, 3000);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue