You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
md-input-container: mdPrefix and mdSuffix divs should not be present when there is no content #3659
I'd like to propose adding an ngIf on both the .mat-input-prefix and .mat-input-suffix divs in the md-input-container template so that they are only in the DOM if the user has included a prefix/suffix.
What is the use-case or motivation for changing an existing behavior?
I'd like to be able to add space between the infix and the affixes, but only when an affix is present.
What is the current behavior?
Currently, if I add any sort of spacing there, the space shows up even without the affix, as seen in the second input here.
Activity
jelbourn commentedon Mar 21, 2017
I agree that we should only render those elements if the directives are present.
angular-automatic-lock-bot commentedon Sep 5, 2019
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.