material icon indicating copy to clipboard operation
material copied to clipboard

md-input-container: input with icon and ng-if is broken (1.0.4)

Open Raidri opened this issue 10 years ago • 7 comments

Hi,

if i use a md-input-container with an icon and i have a ng-if on my input, the icon will not shown to the left. it overlaps the input field.

that happens since Version 1.0.4 with 1.0.3 everything was ok.

here is an example: http://codepen.io/Raidri/pen/EPLBMW

Raidri avatar Jan 29 '16 08:01 Raidri

Same happens here. Icon is broken (inside the input area) if:

  • <md-icon> is before <label> in <md-input-container>
  • <md-icon> with <textarea> in <md-input-container>
  • <md-icon> with <md-select> in <md-input-container>

Works fine on 1.0.3, complete mess on 1.0.4.

xplodwild avatar Jan 29 '16 14:01 xplodwild

+1

gkohen avatar Feb 01 '16 13:02 gkohen

+1

BBeauchemin avatar Feb 01 '16 13:02 BBeauchemin

The icons are not show

<md-icon>&#xE88F;</md-icon>

Do you have the css url for these icons?

ThomasBurleson avatar Feb 04 '16 16:02 ThomasBurleson

Also i can't find any ng-if in the codepen

EladBezalel avatar Feb 04 '16 16:02 EladBezalel

Hi, i don't know why but i was gone. I have added it again. And that is the icon : https://design.google.com/icons/#ic_info_outline

Raidri avatar Feb 05 '16 06:02 Raidri

The ng-if should be on the input-container not the input element..

http://codepen.io/EladBezalel/pen/OMBNdy

EladBezalel avatar Feb 05 '16 14:02 EladBezalel