From dd6cd52cd8353f99c6d30a1d2165336b9c3d3d9e Mon Sep 17 00:00:00 2001 From: Phillip Lang Martinez Date: Sat, 12 Nov 2022 13:19:31 +0200 Subject: [PATCH] change input within component --- .../plugins/core/components/ChatPage.js | 30 +++++++++++++++++-- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/qortal-ui-plugins/plugins/core/components/ChatPage.js b/qortal-ui-plugins/plugins/core/components/ChatPage.js index fdfed413..572cc80e 100644 --- a/qortal-ui-plugins/plugins/core/components/ChatPage.js +++ b/qortal-ui-plugins/plugins/core/components/ChatPage.js @@ -507,6 +507,7 @@ class ChatPage extends LitElement { constructor() { super() + this.changeMsgInput = this.changeMsgInput.bind(this) this.getOldMessage = this.getOldMessage.bind(this) this._sendMessage = this._sendMessage.bind(this) this.insertImage = this.insertImage.bind(this) @@ -541,6 +542,7 @@ class ChatPage extends LitElement { } render() { + console.log(this.chatMessageInput, 'chatmsginput') return html`
@@ -563,6 +565,7 @@ class ChatPage extends LitElement { id="showDialogPublicKey" ?open=${this.imageFile} @closed=${() => { + this.changeMsgInput('_chatEditorDOM') this.chatEditor.enable(); this.caption = ""; this.imageFile = null; @@ -574,7 +577,10 @@ class ChatPage extends LitElement { `}
- + +
${this.isLoading === false ? html`