valid dd/mm format switch sides after manual input on datepicker field
- Lenguaje dominante
- TypeScript
- Estrellas
- 25k
- Forks
- 6.8k
- Merge medio
- 1 d 8 h
- PR fusionados (30 d)
- 91
Descripción
#### Bug, feature request, or proposal:
Bug
#### What is the expected behavior?
That the valid `dd/mm/yyyy` inputed date remains as it is, not matter what, they always switch sides on change.
#### What is the current behavior?
E.g.: `03/02/1990` becomes `02/03/1990`.
#### What are the steps to reproduce?
Set a custom locale like Brasil:
```typescript
// location
import localePt from '@angular/common/locales/pt';
import localePtExtra from '@angular/common/locales/extra/pt';
registerLocaleData(localePt, 'pt', localePtExtra);
```
Then try to use the datepicker with manual input.
#### What is the use-case or motivation for changing an existing behavior?
Because it works very well with the Angular locale config, there's just this switch bug that does not work properly.
#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
```json
{
"@angular/core": "^6.0.6",
"@angular/material": "^6.3.0",
}
```
#### Is there anything else we should know?
##### UI input:

##### Manual input:

~I really don't wanna use moment.js~
----
It seems like the StackBlitz example isn't wroking as well: https://stackblitz.com/angular/vnvbdjykmve?file=app%2Fdatepicker-locale-example.ts
Guía de contribución
Línea de trabajo
Comienza con el ejemplo de StackBlitz enlazado en app/datepicker-locale-example.ts y reproduce el comportamiento de entrada manual del datepicker después de registrar la configuración regional pt y los datos de configuración regional adicionales. Rastrea el análisis sintáctico según la configuración regional del datepicker y el manejo de cambios; se considera terminado cuando un valor introducido como 03/02/1990 permanece igual después de que cambie el campo.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- angular, typescript
- Área
- frontend, internationalization
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100