This repository was archived by the owner on Sep 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Error when using placeholder on input without md-input-container #1290
Milestone
Comments
Having the same issue. |
Maybe related: #1279 |
it's because the "placeholder" is now an angular directive
|
@vertazzar Exactly the issue. |
If it's impossible to overwrite default behavior only when it's wrapped with md-input-container then maybe it would be better to prefix (md-) these directives? Sometimes you need to use default html behavior and now it's impossible. |
Oh, good call. I didn't think of the fact that it would break in other cases. |
Fixed. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Placeholder require mdInputContainer so when input is not wrapped with md-input-container it gives:
Error: [$compile:ctreq] Controller 'mdInputContainer', required by directive 'placeholder', can't be found!
Preview (check console or remove placeholder):
http://plnkr.co/edit/TB7XDPRkyvAez0MrUpC3?p=preview
The text was updated successfully, but these errors were encountered: