When holding an Item in your cursor, I did this in my inventory not sure about chests, and then pressing ESC the item gets erased.
Related issues
is blocked by
is duplicated by
relates to
Attachments
Comments


Confirmed for 15w45a. To reproduce:
1: Go into creative mode, pick up an item from your inventory and hold it in your hand.
2: Close inventory.
3: The item you were holding will be gone.
Can confirm in 20w48a.
Can confirm in 20w51a.
Can confirm that this issue is still present in 21w03a.
Can confirm in 21w05b.
Can confirm in 21w06a.
Can confirm in 21w07a.
Video attached.
Can confirm in 21w11a. Relates to MC-220167.
Can confirm in 21w13a.

I am unable to reproduce this issue in 1.17.1-pre1.

I am also unable to reproduce this in 1.17.1-pre1. Might have been fixed.

Nevermind, it turns out that I experienced MC-229985.

Isn't this blocked by MC-229985?
Ok yeah it looks like it is based on other comments