This is an error that has been occurring since a few beta versions of 26.50. I’m experiencing this bug on Android—I’m not sure if it affects other devices too—but please fix it before it reaches the official release and impacts a huge number of players; it’s better to fix it now rather than later. Basically, as shown in the video, when I open the chat and type something, it automatically closes on its own without me doing anything. This prevents me from typing in the chat or using commands. I hope you read this report and fix the issue—please.
Thank you for helping us improve Minecraft! We saved your files: