Components: md-autocomplete required validation is not there

Created on 14 Aug 2017  路  5Comments  路  Source: angular/components

Bug, feature request, or proposal:

What is the expected behavior?

There is no required attribute/field in autocomplete component, so i am unable to add required validation on autocomplete.

What is the current behavior?

There is no required attribute in autocomplete component.

What are the steps to reproduce?

Providing a Plunker (or similar) is the best way to get the team to see your issue.
Plunker template: https://goo.gl/DlHd6U

What is the use-case or motivation for changing an existing behavior?

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Is there anything else we should know?

Most helpful comment

I think what he wants is something like md-require-match that is present in Autocomplete's AngularJs Material.

Related to #3334?

All 5 comments

The autocomplete component is supposed to be used with an , so add your validation code there.

@CDDelta's comment probably had html in it, so

The autocomplete doesn't concern itself with the underlying input's validators. Either use Validators.required on your form control or make the <input /> required.

I think what he wants is something like md-require-match that is present in Autocomplete's AngularJs Material.

Related to #3334?

Closing as duplicate of #3334

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings