대화내용 검색 > 다음 검색 > 끝까지 검색 이후에도 숫자 증가 버그 수정.

This commit is contained in:
leejinho 2019-12-27 17:45:50 +09:00
parent cec720ce92
commit 70fc20880a

View File

@ -1321,9 +1321,11 @@ export class MessagesComponent implements OnInit, OnDestroy, AfterViewInit {
// } // }
// }); // });
this.searchedFocusEvent = this.searchedList[this.searchCurrentIndex]; if (this.searchCurrentIndex < this.searchedList.length) {
this.searchCurrentIndex = this.searchCurrentIndex + 1; this.searchedFocusEvent = this.searchedList[this.searchCurrentIndex];
this.goSearchPosition(this.searchedFocusEvent.seq); this.searchCurrentIndex = this.searchCurrentIndex + 1;
this.goSearchPosition(this.searchedFocusEvent.seq);
}
} }
onSearchAndPrev() { onSearchAndPrev() {
if ( if (