material icon indicating copy to clipboard operation
material copied to clipboard

<md-input-container> Behaves as if There is an Icon in It

Open khatamnejad opened this issue 11 years ago • 2 comments

If we put an <input> tag with a placeholder attribute (label) in a md-input-container tag - which does not have any attributes like flex or md-no-float, we can see that the container assumes there is an icon before the <input> so moves the label forward (adds padding to it). This can be seen here.

The HTML code that can produce this problem:

<md-input-container>
    <input ng-model="user.email" type="email" placeholder="Email (required)" ng-required="true">
</md-input-container>

khatamnejad avatar Jul 09 '15 21:07 khatamnejad

Hello!

khatamnejad avatar Jul 21 '15 13:07 khatamnejad

Sorry for the delay. I believe this is no longer an issue. Here is your exact Codepen updated to use master: http://codepen.io/topherfangio/pen/jbpvxe

If you are still seeing this issue after upgrading, please comment and we will reopen.

topherfangio avatar Nov 03 '15 17:11 topherfangio