Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

md-input with [(ngModel)] removes 'md-prefix' and 'md-suffix' content. #386

Closed
davidgabrichidze opened this issue May 2, 2016 · 5 comments
Assignees
Milestone

Comments

@davidgabrichidze
Copy link
Contributor

davidgabrichidze commented May 2, 2016

Source HTML:
<md-input placeholder="amount" [(ngModel)]="account.userName"> <span md-prefix>$&nbsp;</span> <span md-suffix>.00</span> </md-input>

In rendered html prefix/suffix element's content are emtpy:
...<div _ngcontent-ega-7="" class="md-input-prefix"></div>...

versions:

  • angular2: beta17
  • material2: alpha-3
@davidgabrichidze davidgabrichidze changed the title when using md-input with [(ngModel)] bingind, 'md-prefix' and 'md-suffix' contents are removed. when using md-input with [(ngModel)] binding, 'md-prefix' and 'md-suffix' contents are removed. May 2, 2016
@jelbourn jelbourn changed the title when using md-input with [(ngModel)] binding, 'md-prefix' and 'md-suffix' contents are removed. md-input with [(ngModel)] removes 'md-prefix' and 'md-suffix' content. May 2, 2016
@nesheroj
Copy link

nesheroj commented May 3, 2016

Experienced this and a similar problem with checkbox labels (radio labels seem unaffected)

@davidgabrichidze
Copy link
Contributor Author

In angular rc-1 and material2 alpha-4 this works normally

@nesheroj
Copy link

nesheroj commented May 4, 2016

Can confirm, this works with the versions @davidgabrichidze mentioned

@jelbourn jelbourn modified the milestone: alpha.6 May 25, 2016
@hansl
Copy link
Contributor

hansl commented Jun 6, 2016

Closing this as fixed. Cheers!

@hansl hansl closed this as completed Jun 6, 2016
andrewseguin pushed a commit to andrewseguin/components that referenced this issue Oct 15, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
…angular#386)

fixes angular#9805

also upgrades angular to 5.1.1
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants