From 51bc261452782ade1fabe9ae2c10edf2252e14ee Mon Sep 17 00:00:00 2001 From: Phillip Lang Martinez Date: Mon, 5 Dec 2022 16:03:21 -0500 Subject: [PATCH] fix remove text when modal closes --- .../plugins/core/components/ChatPage.js | 20 +++++++++++--- .../plugins/core/components/ChatTextEditor.js | 27 ++++++++++++++----- 2 files changed, 37 insertions(+), 10 deletions(-) diff --git a/qortal-ui-plugins/plugins/core/components/ChatPage.js b/qortal-ui-plugins/plugins/core/components/ChatPage.js index 8c0d6849..f06e5bb3 100644 --- a/qortal-ui-plugins/plugins/core/components/ChatPage.js +++ b/qortal-ui-plugins/plugins/core/components/ChatPage.js @@ -654,7 +654,10 @@ class ChatPage extends LitElement { `: ''} this.removeImage()} + .removeImage=${() => { + this.chatEditorNewChat.resetValue() + this.removeImage() + } } style=${(this.imageFile && !this.isUploadingImage) ? "display: block" : "display: none"}>
@@ -673,17 +676,23 @@ class ChatPage extends LitElement { .insertImage=${this.insertImage} .editedMessageObj=${this.editedMessageObj} ?isLoading=${this.isLoading} - ?isLoadingMessages=${this.isLoadingMessages}> + ?isLoadingMessages=${this.isLoadingMessages} + id="chatTextCaption" + >