Widget does not disappear from canvas

Hello,

I am trying to make this widget disappear from the canvas when I left click or right click in another inventory slot, or anywhere else outside it’s bounds. Although what I am facing right now is:

→ If I Right Click on a slot it shows the overlay, then if I Right click again, it disappears.
→ If I Right Click on a slot it shows the overlay, then if I left click on the same slot, the overlay disappears. If the left click is another slot, nothing happens.
→ If I keep Right Clicking on different slots it keeps adding more overlays to the canvas

image_2022-08-24_013912266

This is the code I am using on my Inventory Page to override the “On Mouse Button”:

Also I have set this to the Event Destruct:

Just found a fix for it