Drag and Drop Button Unpress

Hello,

I am creating an inventory system where one of the main objectives is to swap slots.

To do this, i viewed the Drag and Drop tutorial by Wes Brunn since i was not familiar with the drag and drop system of the unreal engine.

In my case everything works as i want, except when the button from where i started draging stays in pressed mode after the drag ended. I want it to change the pressed state after i finish the drag and i have not found a single way to change the button state.

One thing Wes does in the video is a drag enter and leave event and he forces certain styles. However, this is not what i want since i would be changing the style of the button right after the mouse stops hovering it ( which is not my objective ) and because it looks unpressed when he is stuck in pressed which would make me do other logics to reswap the styles after the mouse goes over and fixes the pressed-unpressed issue

I have tried to desactivate the button and activate it again as a workaround, but the button still stays in pressed mode.

I heard that the button states are not exposed, but i would like some sugestions since i dont want to be changing styles and checking hovers to reswap styles.

I have solved my problem by using styles and cheating. Logic ended up super easy but it was still cheating, basicly pressed and normal are the same color and i change the style while draging and change it back after draging.