Skip to content

Commit ca5404d

Browse files
committed
Support null values in NumericValidationBehavior
1 parent 49a1241 commit ca5404d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/CommunityToolkit.Maui/Behaviors/Validators/NumericValidationBehavior.shared.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@ public int MaximumDecimalPlaces
7676
/// <inheritdoc/>
7777
protected override ValueTask<bool> ValidateAsync(string? value, CancellationToken token)
7878
{
79-
ArgumentNullException.ThrowIfNull(value);
80-
8179
if (!(double.TryParse(value, out var numeric)
8280
&& numeric >= MinimumValue
8381
&& numeric <= MaximumValue))

0 commit comments

Comments
 (0)