스티커 닫기 이벤트 추가.
This commit is contained in:
parent
53c99cfe68
commit
ccc88e194e
|
@ -234,6 +234,7 @@
|
|||
#stickerSelector
|
||||
[stickerHistory]="getStickerHistory()"
|
||||
(selectedSticker)="onSelectedSticker($event)"
|
||||
(closeSticker)="onShowToggleStickerSelector()"
|
||||
class="sticker-selector-zone"
|
||||
></ucap-sticker-selector>
|
||||
<div></div>
|
||||
|
|
|
@ -341,6 +341,10 @@ export class MessagesComponent implements OnInit, OnDestroy, AfterViewInit {
|
|||
this.selectedSticker = undefined;
|
||||
|
||||
this.firstcheckReadHere = true;
|
||||
|
||||
if (!!this.chatForm) {
|
||||
this.chatForm.replyForm.reset();
|
||||
}
|
||||
}
|
||||
|
||||
get _roomUserInfos() {
|
||||
|
|
|
@ -18,6 +18,9 @@ export class StickerSelectorComponent implements OnInit {
|
|||
@Output()
|
||||
selectedSticker = new EventEmitter<StickerFilesInfo>();
|
||||
|
||||
@Output()
|
||||
closeSticker = new EventEmitter();
|
||||
|
||||
stickerBasePath = 'assets/sticker/';
|
||||
stickerInfoList: StickerInfo[] = [];
|
||||
stickerFileInfoList: StickerFilesInfo[] = [];
|
||||
|
@ -87,4 +90,8 @@ export class StickerSelectorComponent implements OnInit {
|
|||
this.currentSticker = sticker;
|
||||
this.selectedSticker.emit(sticker);
|
||||
}
|
||||
|
||||
onClickClose() {
|
||||
this.closeSticker.emit();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user