This question is locked. New answers and comments are not allowed.
When is added model error for NumericTextBox, NullReference error message is thrown in InputComponentExtensions.cs
public static string GetAttemptedValue<T>(this IInputComponent<T> instance) where T: struct{ ModelState state; if (instance.ViewContext.ViewData.ModelState.TryGetValue(instance.Name, out state)) { return state.Value.AttemptedValue; } return string.Empty;}state.Value is null. I add checking and now is working fine.
public static string GetAttemptedValue<T>(this IInputComponent<T> instance) where T: struct{ ModelState state; if (instance.ViewContext.ViewData.ModelState.TryGetValue(instance.Name, out state)) { if (state.Value != null) { return state.Value.AttemptedValue; } } return string.Empty;}