Skip to content

feat(forms): add nativeAttribute option to maxLength validator - #70185

Open
brysonbw wants to merge 1 commit into
angular:mainfrom
brysonbw:feat-allow-maxlength-validation-without-native-attribute-69831
Open

feat(forms): add nativeAttribute option to maxLength validator#70185
brysonbw wants to merge 1 commit into
angular:mainfrom
brysonbw:feat-allow-maxlength-validation-without-native-attribute-69831

Conversation

@brysonbw

Copy link
Copy Markdown
Contributor

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.dev application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

maxLength() always binds the native maxlength HTML attribute, causing browser hard-truncation with no option to opt out.

Issue Number: #69831

What is the new behavior?

Adds nativeAttribute to maxLength() config/options to opt out of native HTML attribute binding while keeping signal validation intact.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@pullapprove
pullapprove Bot requested a review from crisbeto August 13, 2026 12:09
@angular-robot angular-robot Bot added detected: feature PR contains a feature commit area: forms labels Aug 13, 2026
@ngbot ngbot Bot added this to the Backlog milestone Aug 13, 2026
Adds nativeAttribute to maxLength to opt out of native HTML attribute binding while keeping signal validation intact.
@brysonbw
brysonbw force-pushed the feat-allow-maxlength-validation-without-native-attribute-69831 branch from c9e56b3 to 6842bd7 Compare August 13, 2026 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: forms detected: feature PR contains a feature commit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant