From 32277bc60c485264458a2a7b2f677225cab3f564 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E4=BA=91=E9=A3=9E?= Date: Thu, 22 Sep 2022 17:57:42 +0800 Subject: [PATCH] fix:navigate error when search keyword change --- src/editor/core/draw/interactive/Search.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/editor/core/draw/interactive/Search.ts b/src/editor/core/draw/interactive/Search.ts index 6a52517..06f9e01 100644 --- a/src/editor/core/draw/interactive/Search.ts +++ b/src/editor/core/draw/interactive/Search.ts @@ -34,9 +34,7 @@ export class Search { public setSearchKeyword(payload: string | null) { this.searchKeyword = payload - if (!payload) { - this.searchNavigateIndex = null - } + this.searchNavigateIndex = null } public searchNavigatePre(): number | null {