You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
autocomplete: md-require-match flashes ng-message error on selection #10975
Actual Behavior: md-require-match briefly shows an error message on mouse down event.
`What is the issue? * I am using md-require-match inside an md-autocomplete and, once autocomplete's item are shown, I select one of them with my mouse and, for a millisecond, error message for md-require-match is showed.
Please note that this message is not showed if I hit an item with enter key.
What is the expected behavior? No error message should be displayed when an item is selected from the list.
changed the title [-]md-require-match wrongly shows error message [/-][+]autocomplete: md-require-match flashes ng-message error on selection[/+]on Dec 27, 2017
@SSPai123 nope, no updates at this time. It would be appreciated if someone from the community could investigate and determine the cause of this issue.
The issue is caused by adding the required attribute to md-autocomplete. md-require-match does not cover the case where a user fails to select an option from the field so required is needed.
I think I found the solution, but I have some problems with understanding some test case, maybe someone could help with this? I tried to explain my thoughts in the 'Other information' section of PR draft
Activity
[-]md-require-match show (briefily) [/-][+]md-require-match wrongly shows error message [/+][-]md-require-match wrongly shows error message [/-][+]autocomplete: md-require-match flashes ng-message error on selection[/+]sukanya-pai commentedon Jul 16, 2018
Any updates/ solution for this issue?? Even I am facing the same issue.
Splaktar commentedon Jul 19, 2018
@SSPai123 nope, no updates at this time. It would be appreciated if someone from the community could investigate and determine the cause of this issue.
jonnyAmplience commentedon Mar 11, 2019
The issue is caused by adding the required attribute to md-autocomplete. md-require-match does not cover the case where a user fails to select an option from the field so required is needed.
fix(autocomplete): prevent flashing of invalid state on suggestion se…
fix(autocomplete): prevent flashing of invalid state
shishkinilya commentedon Dec 16, 2020
I think I found the solution, but I have some problems with understanding some test case, maybe someone could help with this? I tried to explain my thoughts in the 'Other information' section of PR draft
Splaktar commentedon Dec 16, 2020
@shishkinilya OK, I will take a look at your PR, thank you.
fix(autocomplete): add check that the event is an object
fix(autocomplete): prevent flashing of invalid state (#12064)