From c1332b1ab1caa25e3a8a0c566ad4e3e3accbe6ef Mon Sep 17 00:00:00 2001 From: Valentin Mihai Date: Wed, 20 Sep 2023 10:55:46 +0200 Subject: [PATCH] RED-7349 - Auto-search in dictionary editor should not interfere with user input --- .../dictionary-manager/dictionary-manager.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/red-ui/src/app/modules/shared/components/dictionary-manager/dictionary-manager.component.ts b/apps/red-ui/src/app/modules/shared/components/dictionary-manager/dictionary-manager.component.ts index 4b2be5f2f..031a23b06 100644 --- a/apps/red-ui/src/app/modules/shared/components/dictionary-manager/dictionary-manager.component.ts +++ b/apps/red-ui/src/app/modules/shared/components/dictionary-manager/dictionary-manager.component.ts @@ -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;