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

Form doesn't become dirty when we select a value in an empty autocomplete #2753

Closed
NicolasVargas opened this issue May 6, 2015 · 3 comments
Milestone

Comments

@NicolasVargas
Copy link

Hi guys,

Thank you for your work on angular material. It's amazing !
I'm trying the md-autocomplete website's example

When we type something in the input, the form's dirty flag is set to true.
But when the form is not dirty and we just click on the input, if we select an element, the model binded changes but the form remains clean.
Shouldn't the dirty flag be set to true ?

You can see an example on this plunker link

Thanks,

Izcalli

@NicolasVargas
Copy link
Author

Actually, the md-autocomplete is not set dirty when we select an item but when we type something in the text input. What if it was set dirty on select change ?

@NicolasVargas
Copy link
Author

Sorry but it's still the same with master version.
With md-min-length = 0, when we select without typing anything, the form isn't set to dirty.
Here is the same example with angular material master version

@jalchr
Copy link

jalchr commented Jun 20, 2017

@NicolasVargas Any luck with this issue ?
I'm facing the same problem.

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