Apparently MC-224946 got marked as WAI, meaning that items in your cursor won't never drop when you close the inventory UI (unless you're full), items in the crafting grid also won't drop, however this doesn't seem to affect the off-hand slot. If you have an inventory full of items in every slot excluding the off-hand the item will still drop instead of putting it on the off-hand slot.
How to reproduce:
Get your inventory full of unstackable items, also drop one on the floor.
Open the inventory and get one item in your cursor to get the item on the floor.
Close the UI while having the inventory full and the item in your cursor.
❌ The item gets dropped instead of putting it on the off-hand slot.
Linked issues
duplicates 1
Attachments
Comments 4
Not the same, in that report is noting out that the item disappears in creative when it should drop it. What i'm saying here is that the item is being dropped instead of being put in the off-hand slot.
Hmm yeah, but i don't think they are exactly the same, because both mechanics work a bit different. If that one was fixed you can't be sure if this one won't happen at all, because maybe the item would still be dropped after closing the UI, but it would still get the item in the off-hand after being dropped (like how it happened before with the other slots).
Thank you for your report!
We're tracking this issue in MC-225011, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki