To reproduce, "direct connect" to a server and paste in an IP or address (or anything really). Notice that the "Join Server" button does not become enabled as it should, and the user has to add/delete text to enable it.
:info: Additionally, this specific text box exhibits two other unusual properties:
1. It appears selected when opening the menu, but actually is not.
2. If there is already text inside (from previously editing it), the button will be enabled even after all the text is removed.
Aside from the command block interface (which has other unique properties and is convered in MC-121377), I have not found any other examples of input fields with these reported properties. If anyone else does, please let me know. Until then, I'm editing the issue to be less general.