UI Drag Detector stops dragging when parent changed

I put the UI to changes the parent in my inventory because the UI Grid Layout in a script, but this make the UI Drag stops, anyone can help?

I put the wrong tag, but I fix. Anyone can help me? Please.