Skip to content

md-errors disable container's input error requirement to display option #6639

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
Shiso opened this issue Aug 25, 2017 · 3 comments
Closed

md-errors disable container's input error requirement to display option #6639

Shiso opened this issue Aug 25, 2017 · 3 comments

Comments

@Shiso
Copy link

Shiso commented Aug 25, 2017

Bug, feature request, or proposal:

i fought i was facing #4027 but it seems that a md-error is only showed when the md-input-container's input is itself invalid.

I have multiple fields depending on the process over one, and wished to display each errors of theses fields ().

It makes sense, but at the same time an option to disable this condition would help me a lot.

What are the steps to reproduce?

Here is a working plunker to present the issue: http://plnkr.co/edit/3ZYCiYeVo2QITpuQf0R0?p=preview

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

search input through google places and lat/lng population has an example, or any displayed input with only front end motives to be processed over user's actions.

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

I would say any, but i only tested on recent versions

Is there anything else we should know?

I should add that i am a beginner in angular / material, i love it so far and search for the best solution but i missed something please give me a hint !

@willshowell
Copy link
Contributor

I don't really follow your plunker example, but I think you might be looking for a Custom Error Matcher. By default, errors won't show until the input has been touched, so if you want them to display at other times, you'll have to specify when in the matcher function.

If that's not what you're looking for, could you explain further and simplify your example?

@Shiso
Copy link
Author

Shiso commented Aug 25, 2017

Ho wow, how did i missed that ? And i've just read again my example, it's unclear and with a lot of useless parts.
I've checked your solution and it seems to offer exactly what i need.

so sorry for this post, is there a blackhole for this kind of "questions" ? ^^'

@Shiso Shiso closed this as completed Aug 25, 2017
@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 6, 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

2 participants