Open Closed

Angular Reactive Form Min/Max Validation #2156


User avatar
0
paul.harriman created
  • ABP Framework version: v4.4.3
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes / no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

In a reactive form add a input html element with validation of required, min, max. Serve and then enter a number greater than max or less than min. notice the error message

this.form = this.fb.group({
  isEnabled: [isEnabled, Validators.required],
  environments: [environments],
  runOnceDay: [runOnceDay],
  startTime: [startTime],
  endTime: [endTime],
  alertFrequency: [alertFrequency, [Validators.min(1), Validators.max(24)]],
});


1 Answer(s)
  • User Avatar
    0
    bunyamin created

    Hello,

    Thank you for reporting this bug. I've created an internal issue to track this down.

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11