-
Notifications
You must be signed in to change notification settings - Fork 3.4k
feat(autocomplete): pass md-input-max/min-length to the input with no… #9964
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed, please reply here (e.g.
|
1 similar comment
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed, please reply here (e.g.
|
I believed it would be taken up with #4492 . However it wasn't. The value of Search Text is exposed , hence it can be used in a scenario when we want the autocomplete to serve as both a suggestion list as well as text input . |
CLAs look good, thanks! |
1 similar comment
CLAs look good, thanks! |
Thanks for the pull request - The reason why the My question here is, how will you validate the "underlaying" input? |
The property is exposed as [FORM_NAME].[MD_INPUT_NAME].$error.maxlength nonetheless. |
@theLufenk Ah I see. From this perspective it makes sense to support those Can you please some tests for those two attributes? |
Added tests. The spec was missing tests for md-input-minlength. Added them too. |
@theLufenk Perfect! I think the tests which are only checking for the
|
…n-floating label Adds the md-input-minlength and md-input-maxlength attributes as ng-minlength and ng-maxlength to the input element of the autocomplete directive when a floating label is not used. A use case : It would help in validating the input when the value of Search Text is being used if no matches are found. Added Unit tests for md-input-maxlength and md-input-minlength
Done and rebased. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks
…n-floating label
Adds the md-input-minlength and md-input-maxlength attributes as ng-minlength and ng-maxlength to the input element of the autocomplete directive when a floating label is not used.
A use case : It would help in validating the input when the value of Search Text is being used if no matches are found.