RED-7349 - Auto-search in dictionary editor should not interfere with user input

This commit is contained in:
Valentin Mihai 2023-09-20 10:55:46 +02:00
parent f578c0facb
commit c1332b1ab1

View File

@ -173,13 +173,13 @@ export class DictionaryManagerComponent implements OnChanges {
revert() {
this.editor?.revert();
this.searchText = '';
this.searchChanged('');
}
@Debounce()
searchChanged(text: string) {
this.searchText = text.toLowerCase();
this.findMatches = this._getMatches(this.searchText);
this.findMatches = this._getMatches(text.toLowerCase());
this._applySearchDecorations();
this.currentMatch = 0;