In prior versions, you could shift-click the "Destroy Item" slot in the creative inventory to clear all your items. Since 24w36a, this now only deletes the item server-side, but not client-side, leaving a ghost item.
Linked issues
is duplicated by 25
20 more links
Can confirm, just came on here to report this