File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -421,7 +421,10 @@ export default {
421
421
422
422
if (detectMobile ()) {
423
423
this .$refs [' roomTextarea' ].addEventListener (' blur' , e => {
424
- this .preventMobileKeyboadFromClosing ()
424
+ setTimeout (() => this .keepMobileKeyboardOpen = false , 0 )
425
+ })
426
+ this .$refs [' roomTextarea' ].addEventListener (' click' , e => {
427
+ this .keepMobileKeyboardOpen = true
425
428
})
426
429
}
427
430
@@ -635,6 +638,7 @@ export default {
635
638
this .imageDimensions = null
636
639
this .imageFile = null
637
640
this .emojiOpened = false
641
+ this .preventMobileKeyboardFromClosing ()
638
642
setTimeout (() => this .focusTextarea (disableMobileFocus), 0 )
639
643
},
640
644
resetImageFile () {
@@ -657,9 +661,8 @@ export default {
657
661
isMessageEmpty () {
658
662
return ! this .file && ! this .message .trim ()
659
663
},
660
- preventMobileKeyboadFromClosing () {
664
+ preventMobileKeyboardFromClosing () {
661
665
if (this .keepMobileKeyboardOpen ) {
662
- this .keepMobileKeyboardOpen = false
663
666
this .$refs [' roomTextarea' ].focus ()
664
667
}
665
668
},
You can’t perform that action at this time.
0 commit comments