bug(Form field): mat-error adds spaces to beginning and end when on several lines
- Lenguaje dominante
- TypeScript
- Estrellas
- 25k
- Forks
- 6.8k
- Merge medio
- 1 d 8 h
- PR fusionados (30 d)
- 91
Descripción
### 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
Guía de contribución
Línea de trabajo
Comienza reproduciendo el ejemplo de mat-error multilínea en Angular Material y sigue cómo se renderiza el contenido de su mensaje. Se considera terminado cuando el texto multilínea de mat-error no tiene espacios iniciales ni finales, mientras que el caso de una sola línea sigue mostrándose correctamente.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- angular, typescript
- Área
- frontend
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100