How should I keep my game from reacting to a Click on a HUD element?

This has got to be very simple programming logic that I am overlooking. I have a UMG widget that functions as toggle button for a boolean variable “CustomizeMode.” When you click on the button, it toggles the mode.

In my character Blueprint, the click event triggers a Line Trace and subsequent events only if the CustomizeMode variable is true.

The problem is that the variable is set to true and the Line Trace is triggered all in the same Mouse click, resulting in the trace occurring as soon as the button is toggled.

How do I tell my character to not run its click event function if I clicked specifically on this widget or any other HUD element?

Recap: I want to click on my toggle button, then click elsewhere on the screen for my custom function.

Thanks for your help! The UMG button doesn’t seem to have a bindable “on release” event, and the blueprint version of that event is refusing to be created in the Event Graph. Any advice?