TextBox text style Aplha is not used

I made a simple testing Widget:

As root is a Canvas Panel and inside it I have a TextBox (with the text by default “Test Test…”) to which I changed Background Image Normal/Hovered/Focused Tint to color “Black” (0,0,0,1) and Text Style Color to “White” (1,1,1,1). Under that I have two buttons, each of them on click have the following:

Show Text (Show):

It makes a new EditableTextBoxStyle in which it is copied everything from the TextBox except in the color it changes the Alpha to 1, and then sets the new style to the TextBox.

Hide Text (Hide):

Same as “Show” except this time it changes the Alpha to 0.

Now the problem is that the Alpha doesn’t get changed. If I set the Alpha in text style to 1, and I press the hide button (which normally should copy the same style but change alpha to 0) it doesn’t get changed, and stays at 1. Same in reverse if I press the show button, it stays at 0.

As an additional test I split Background Image Normal then it’s tint and I changed the color to 1, 0, 1, 1 and it did changed on button press. Then I tried the same, instead to copy the old values I gave it new ones for color as well as Alpha, but text still doesn’t get changed (neither the color or the Alpha).

Note: In the bellow Image alpha is set to 1 for the text, even tho the button says hide, but when I did the testing for the color+alpha I changed the alpha of the text to 0. Just as a note because it is different from the above test when only alpha was tested not the color as well.

Shouldn’t it do what I was thinking it was suppose to do? Or is it a bug?

Unreal Engine version: 5.1.0

It is a known bug in version 5.1.0.

Bug:

Fix for source code:
https://github.com/EpicGames/UnrealEngine/commit/d9c4ec475e66c57ffb6f03561904db724f6b4353

Because the new version may take a while until is released, I tried to manually apply that fix, but it only seem to work for Editable Text and doesn’t fix the issue with Text Box and Combo Box String. If I get a working solution even for modifying the source code, I’ll post an update, or maybe someone else has a fix for it already.

//Edit1:
I tried to make the following changes for Text Box, but now when Set Style is called, the text is replaced by:
image
If I copy that and paste it somewhere else (like in Notepad), then the text is correct, so I think it might lose the font or something.

  1. In EditableTextBox.cpp I added:
void UEditableTextBox::SetWidgetStyle(const FEditableTextBoxStyle& InEditableTextBoxStyle) {
	WidgetStyle = InEditableTextBoxStyle;
	if (MyEditableTextBlock.IsValid()) {
		MyEditableTextBlock->SetStyle(&WidgetStyle);
	}
}
  1. In EditableTextBox.h I changed:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Appearance, meta=(DisplayName="Style", ShowOnlyInnerProperties))

to

UPROPERTY(EditAnywhere, BlueprintReadWrite, Setter, Category = Appearance, meta = (DisplayName = "Style", ShowOnlyInnerProperties))

And added:

void SetWidgetStyle(const FEditableTextBoxStyle& InEditableTextBoxStyle);