bug(Form field): mat-error adds spaces to beginning and end when on several lines
- Lingua principale
- TypeScript
- Stelle
- 25k
- Fork
- 6.8k
- Merge medio
- 1g 8h
- PR unite (30g)
- 91
Descrizione
### Is this a regression?
- [X] Yes, this behavior used to work in the previous version
### The previous version in which this bug was not present was
v14
### Description
When I use mat-error like this:
``
` My Error Message`
``
the resulting string for "My Error Message" has spaces at the beginning and end of it: " My Error Message ".
When I do this:
`My Error Message`
the resulting string is displayed correctly.
### Reproduction
Steps to reproduce:
1. create a mat-error with a line-break and input some dummy text
### Expected Behavior
There shouldn't be spaces inside the mat-error message when it is multi-line.
### Actual Behavior
There are spaces inside the mat-error message when it is multi-line.
### Environment
- CDK/Material: 15.0.4
- Browser(s): Firefox/Chrome
- Operating System Windows
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia riproducendo l'esempio multilinea di mat-error in Angular Material e segui il modo in cui viene renderizzato il contenuto del messaggio. Il lavoro è completato quando il testo multilinea di mat-error non contiene spazi iniziali o finali, mentre il caso su una sola riga continua a essere visualizzato correttamente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- angular, typescript
- Ambito
- frontend
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100