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

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

View File

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