This repository was archived by the owner on May 1, 2024. It is now read-only.
[Bug] Label displays an incorrect text when AutomationProperties.Name was set #9321
Labels
a/a11y 🔍
a/label
p/Android
t/bug 🐛
up-for-grabs
We welcome community contributions to any issue, but these might be a good place to start!
Description
A Label displays incorrect text when its Text property is an empty string, if AutomationProperties.Name has been set for this Label in the past.
This might be connected with the bug #7875.
Steps to Reproduce
I have created a simple example that demonstrates the bug behavior. Basically, there is an Entry and a Label that displays the text from the Entry in the uppercase. The AutomationProperties.Name are also set on the Label (for simplicity, the same value as for the Text property is used).
LabelBug.zip
The attached example also contains button which can be used to verify that both Text and AutomationProperties.Name are empty. However, the mentioned gray text is still displayed on the screen.
Expected Behavior
When the Text property and AutomationProperties.Name are set to empty string, the Label should not display any text on the screen.
Actual Behavior
The label displays former AutomationProperties.Name in gray color on the screen.
Basic Information
The text was updated successfully, but these errors were encountered: