Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

input: md-maxlength validation doesn't happen on initialization for interpolated size #11329

@brianrodecap

Description

@brianrodecap

Bug, enhancement request, or proposal:

Using md-maxlength="MAX" on an input field that initializes to some value of length > "MAX", the md-maxlength validation does not happen, and the input field is considered valid.

See original issue #10320

CodePen and steps to reproduce the issue:

https://codepen.io/Splaktar/pen/vdmNPJ?editors=1010#0

Detailed Reproduction Steps:

  1. You should be able to see that the field using the interpolated md-maxlength is incorrectly initially valid and the others are correctly marked invalid.

What is the expected behavior?

I would expect that all fields be initially invalid.

Which versions of AngularJS, Material, OS, and browsers are affected?

  • AngularJS: 1.6.7
  • AngularJS Material: 1.1.9
  • OS: MacOS, Windows
  • Browsers: Chrome

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions