Skip to content

Commit 461d0f3

Browse files
Apply suggestions from code review
Co-authored-by: Rosario Pulella <Rosariopulella@gmail.com>
1 parent ebb294d commit 461d0f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Microsoft.Toolkit.Uwp.UI.Controls.Input/TokenizingTextBox/TokenizingTextBoxAutomationPeer.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,13 @@ protected override string GetClassNameCore()
7878
protected override string GetNameCore()
7979
{
8080
string name = this.OwningTokenizingTextBox.Name;
81-
if (!string.IsNullOrEmpty(name))
81+
if (!string.IsNullOrWhiteSpace(name))
8282
{
8383
return name;
8484
}
8585

8686
name = AutomationProperties.GetName(this.OwningTokenizingTextBox);
87-
return !string.IsNullOrEmpty(name) ? name : base.GetNameCore();
87+
return !string.IsNullOrWhiteSpace(name) ? name : base.GetNameCore();
8888
}
8989

9090
/// <summary>
@@ -128,4 +128,4 @@ protected override IList<AutomationPeer> GetChildrenCore()
128128
return peers;
129129
}
130130
}
131-
}
131+
}

0 commit comments

Comments
 (0)