Browse Source
Merge pull request #6135 from AvaloniaUI/textbox-IsNullOrEmpty
Use IsNullOrEmpty instead of IsNullOrWhiteSpace for :empty pseudoclass
pull/6139/head
Max Katz
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/Avalonia.Controls/TextBox.cs
|
|
|
@ -1290,7 +1290,7 @@ namespace Avalonia.Controls |
|
|
|
|
|
|
|
private void UpdatePseudoclasses() |
|
|
|
{ |
|
|
|
PseudoClasses.Set(":empty", string.IsNullOrWhiteSpace(Text)); |
|
|
|
PseudoClasses.Set(":empty", string.IsNullOrEmpty(Text)); |
|
|
|
} |
|
|
|
|
|
|
|
private bool IsPasswordBox => PasswordChar != default(char); |
|
|
|
|