fix:navigate error when search keyword change
This commit is contained in:
@@ -34,9 +34,7 @@ export class Search {
|
|||||||
|
|
||||||
public setSearchKeyword(payload: string | null) {
|
public setSearchKeyword(payload: string | null) {
|
||||||
this.searchKeyword = payload
|
this.searchKeyword = payload
|
||||||
if (!payload) {
|
this.searchNavigateIndex = null
|
||||||
this.searchNavigateIndex = null
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public searchNavigatePre(): number | null {
|
public searchNavigatePre(): number | null {
|
||||||
|
|||||||
Reference in New Issue
Block a user