To reproduce:
Use the command
/give @s diamond_hoe 64
in creative mode.
Shift-right click the "Destroy Item" button.
See that everything but your hotbar hasn't been destroyed.
Play around with some of the items to confirm that they seem to still be there.
Go into survival mode
Click on any of the items, and see that they disappear.
This seems to be caused by something similar to MC-41113, which would be worth looking into.
Thank you for your report!
However, this issue is a Duplicate of MC-141883.
If you have additional information, please add it to that report.
Please search before reporting, as it's likely that one exists already.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki