Whenever I try to trade with a villager, it lets me pick up the item but doesn't use up any of the input trade. The picked up item immediately disappears as though the trade never happened. I can repeat this until it says the villager is out of stock. Closing the trading window and reopening resets the issue. This only applies to a random amount of trades. Attached are GIFs of the issue in action.
When shift clicking, sometimes the item will appear in my inventory, but disappear when closing the trade window.
[Here are GIFs of the bug in action|https://imgur.com/a/nNfSFy9]
Duplicate of MC-148454