Widget previously added to viewport still works when new widget is added to viewport

I have a peculiar situation. On Begin Play main widget is added to viewport. On certain button pause menu widget is added to viewport “above” main widget. But main widget still reacts to hover events for example. Moveover when pressing “Quit” button in pause menu new widget with warning to promt exit is added to viewport and both pause menu widget and main widget still reacts to input. I figure the issue can be in focus but I can’t find way to make focus only on current active widget.

Solved my problem. Issue was not in focus but in changing for current active widget from not hit-testable to visible.