ChangeInventoryEvent doesn't work properly

i set it cancel when the event happen

but the item can still be dropped using the Q key, it seems that it’s a bug ,and the items dropped can’t be restored.