Drag and Drop always falls back to parent widget

When I drag an item from my inventory panel, the on drop will only call on the parent widget that holds the inventory panel. (I have made the inventory panel separate to be modular)

If I set OnDrop on the inventory panel, it doesn’t work. The OnDrop happens on the main hud canvas, as if I were dragging the item outside the inventory (to drop it on the ‘ground’).

OnDrop will work on the parent widget of the inventory panel, and it does not drop the item on the ground, but I lose functionality because it doesn’t drop in the inventory slots of the actual inventory menu.

I’ve tried all sorts of variations of panel visibility and moving around the OnDrop, OnDragEnter and OnDragLeave, I don’t know what to try from here except changing how my inventory works.

hi.the on drop function only be called when you drop an item on the widget where you rewrite the on drop function.if you want to drop on the slot.you probably should rewrite the on drop in the slot widget,not the inventory panel.(I assume you have a panel to hold the slots.and wrote on drop in the panel?)