diff options
author | Joas Schilling <coding@schilljs.com> | 2020-09-02 15:06:30 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-09-02 15:06:30 +0300 |
commit | b5a04c9e7dc8481a03d0195206b61f0d87a95746 (patch) | |
tree | 136e21a390e3ee738f4be5640fcbab2e7416f4b5 /src | |
parent | a3dcbfff68fe1d174b2c8aade802aefe560705f5 (diff) |
Fix focus state after pasting something into the chat input
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/components/NewMessageForm/AdvancedInput/AdvancedInput.vue | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components/NewMessageForm/AdvancedInput/AdvancedInput.vue b/src/components/NewMessageForm/AdvancedInput/AdvancedInput.vue index d7ec26493..d98c74745 100644 --- a/src/components/NewMessageForm/AdvancedInput/AdvancedInput.vue +++ b/src/components/NewMessageForm/AdvancedInput/AdvancedInput.vue @@ -249,6 +249,8 @@ export default { const text = content.text const div = document.createElement('div').innerText = escapeHtml(text) document.execCommand('insertHtml', false, div) + + this.focusInput() } }, |