We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebb294d commit 461d0f3Copy full SHA for 461d0f3
Microsoft.Toolkit.Uwp.UI.Controls.Input/TokenizingTextBox/TokenizingTextBoxAutomationPeer.cs
@@ -78,13 +78,13 @@ protected override string GetClassNameCore()
78
protected override string GetNameCore()
79
{
80
string name = this.OwningTokenizingTextBox.Name;
81
- if (!string.IsNullOrEmpty(name))
+ if (!string.IsNullOrWhiteSpace(name))
82
83
return name;
84
}
85
86
name = AutomationProperties.GetName(this.OwningTokenizingTextBox);
87
- return !string.IsNullOrEmpty(name) ? name : base.GetNameCore();
+ return !string.IsNullOrWhiteSpace(name) ? name : base.GetNameCore();
88
89
90
/// <summary>
@@ -128,4 +128,4 @@ protected override IList<AutomationPeer> GetChildrenCore()
128
return peers;
129
130
131
-}
+}
0 commit comments