зеркало из https://github.com/nextcloud/spreed.git
Merge pull request #2856 from nextcloud/bugfix/2853/pressing-enter-again-sends-invisible-message
Pressing enter again re-sends last message
This commit is contained in:
Коммит
58315e6e4f
|
@ -181,7 +181,9 @@ export default {
|
|||
},
|
||||
watch: {
|
||||
text(text) {
|
||||
this.$emit('update:contentEditable', this.$refs.contentEditable.cloneNode(true))
|
||||
this.$nextTick(() => {
|
||||
this.$emit('update:contentEditable', this.$refs.contentEditable.cloneNode(true))
|
||||
})
|
||||
|
||||
this.$emit('update:value', text)
|
||||
this.$emit('input', text)
|
||||
|
|
|
@ -220,6 +220,7 @@ export default {
|
|||
const temporaryMessage = this.createTemporaryMessage()
|
||||
this.$store.dispatch('addTemporaryMessage', temporaryMessage)
|
||||
this.text = ''
|
||||
this.parsedText = ''
|
||||
// Scrolls the message list to the last added message
|
||||
this.$nextTick(function() {
|
||||
document.querySelector('.scroller').scrollTop = document.querySelector('.scroller').scrollHeight
|
||||
|
|
Загрузка…
Ссылка в новой задаче