Skip to content

md-autocomplete required validation is not there #6449

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Suresh918 opened this issue Aug 14, 2017 · 5 comments
Closed

md-autocomplete required validation is not there #6449

Suresh918 opened this issue Aug 14, 2017 · 5 comments

Comments

@Suresh918
Copy link
Contributor

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?

@CDDelta
Copy link

CDDelta commented Aug 14, 2017

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

@willshowell
Copy link
Contributor

@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.

@rafaelss95
Copy link
Contributor

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

Related to #3334?

@josephperrott
Copy link
Member

Closing as duplicate of #3334

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants