Skip to content

mat-form-field with outline appearance doesn't resize border when label content change dynamicaly #12353

Closed
@jcadiba

Description

@jcadiba

Bug :

mat-form-field with outline appearance doesn't resize border when label content change dynamicaly

What is the expected behavior?

Borders must resize themselves automatically to take into account the dynamic changes of the label

What is the current behavior?

The borders take into account the initial value of the label but after if this value changes and it is longer than the initial value, the borders do not adapt to this change thus leaving a border overlapping the label

What are the steps to reproduce?

from this stackblitz, first when the form launch the label of the outline form field have the value "initial" and after write in first form field that is bind to the second form field mat-label the value "Long dynamic label" you will see the border will overlap the label
https://angular-axyjeg.stackblitz.io (https://stackblitz.com/edit/angular-axyjeg)

Before
2018-07-25 2

After
2018-07-25 3

Metadata

Metadata

Labels

P4A relatively minor issue that is not relevant to core functions

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions