Skip to content

Create a new pull request by comparing#405

Merged
GulajavaMinistudio merged 1 commit intoGulajavaMinistudio:masterfrom
angular:master
Feb 9, 2021
Merged

Create a new pull request by comparing#405
GulajavaMinistudio merged 1 commit intoGulajavaMinistudio:masterfrom
angular:master

Conversation

@GulajavaMinistudio
Copy link
Owner

This commit adds the missing min and max validators.

BREAKING CHANGE:

Previously min and max attributes defined on the <input type="number">
were ignored by Forms module. Now presence of these attributes would
trigger min/max validation logic (in case formControl, formControlName
or ngModel directives are also present on a given input) and
corresponding form control status would reflect that.

Fixes angular#16352

PR Close angular#39063

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.io application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

This commit adds the missing `min` and `max` validators.

BREAKING CHANGE:

Previously `min` and `max` attributes defined on the `<input type="number">`
were ignored by Forms module. Now presence of these attributes would
trigger min/max validation logic (in case `formControl`, `formControlName`
or `ngModel` directives are also present on a given input) and
corresponding form control status would reflect that.

Fixes #16352

PR Close #39063
@GulajavaMinistudio GulajavaMinistudio merged commit 5f14ee1 into GulajavaMinistudio:master Feb 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Angular's input validation should align with HTML5 validation! (Currently it does not!)

2 participants