Holding items wanted by the villager in the off-hand won't let it hold out emerald
Steps:
Create a new world with Creative and off-hand parity exp
Summon a villager. Note its profession and what it wants to buy from you. For example, if it is a Fletcher, get some sticks it wants.
Get the item that it wants. And swap the item into offhand (press F)
Expected: The villager can hold emerald, as a sign that it wants to buy from you, in both hands
Actual: The villager does not respond to your holding the item in the offhand. But it can normally respond when you hold the item wanted by it in your mainhand.
Thank you for helping us improve Minecraft! We saved your files: