why cant i press the button before commiting?


thats a widget im working on. when i changing the text i soppose to be able to save the changes by pressing on the green button or revert the changes by pressing on the red button or losing focus from the text (OnTextCommited), in both cases - the buttons go invisible (thay apear after i changing text).
the issue is - if im using on click the event OnTextCommited hapening before im ening the button press.

so i using OnPress to solve it, But - OnPress changing some things in the layout priority becuse every second time the buttons go invisable i need to press twice to activate the button.
really struggelin with that

ConfirmButton->SetClickMethod(EButtonClickMethod::Type::MouseDown);
ConfirmButton->OnPressed.AddDynamic(this, &UEditableValidatedText::OnConfirmEditName);

seems to fix that