When you try to trade with a villager for the first time, the window appears for a split second then closes.
Steps to Reproduce:
- Spawn a villager
- Open the trade window/GUI
Notice that it closes, if it is the first time opening it.
The trade window should stay open.
Screenshots/Videos attached: Yes
This will also happen if you haven't interacted with a villager for some time.
Presumably this is linked with the game loading in the villagers profession and trades.