Skip to content
This repository was archived by the owner on Jul 31, 2024. It is now read-only.

Commit 19ef80a

Browse files
authored
FDS-657 f-log Not clearing highlight of last search (#257)
1 parent 3547ef7 commit 19ef80a

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

packages/flow-log/CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
# Change Log
44

5+
## [2.0.6] - 2024-03-23
6+
7+
### Bug Fixes
8+
9+
- Not clearing highlight of last search
10+
511
## [2.0.5] - 2024-03-23
612

713
### Bug Fixes

packages/flow-log/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ollion/flow-log",
3-
"version": "2.0.5",
3+
"version": "2.0.6",
44
"description": "Code editor component for flow library",
55
"module": "dist/flow-log.es.js",
66
"main": "dist/flow-log.es.js",

packages/flow-log/src/components/f-log/f-log-search-and-filters.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export function clearFilter(this: FLog) {
3838
* It will highlight text present in logs with mark tag
3939
* @param searchText
4040
*/
41-
export function highlightText(this: FLog, searchText: string, scroll = true): void {
41+
export function highlightText(this: FLog, searchText?: string, scroll = true): void {
4242
if (this.searchDebounceTimeout) {
4343
clearTimeout(this.searchDebounceTimeout);
4444
}

packages/flow-log/src/components/f-log/f-log.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ export class FLog extends FRoot {
361361
this.renderBatchedLogs(this.currentBatchId);
362362
});
363363
}
364-
if (changedProperties.has("searchKeyword") && this.searchKeyword) {
364+
if (changedProperties.has("searchKeyword")) {
365365
this.highlightText(this.searchKeyword, true);
366366
}
367367

0 commit comments

Comments
 (0)