ionic-team / ionic-team/ionic-framework

feat: ion-datetime: default value when opened

Abierto
#20,532 6 comentarios 3 reacciones 0 asignados Ver en GitHub
package: core type: feature request
Lenguaje dominante
TypeScript
Estrellas
52.7k
Forks
13.3k
Merge medio
1 d 15 h
PR fusionados (30 d)
51

Descripción

# Feature Request

**Ionic version:**

[x] **4.x**

**Describe the Feature Request**

when opening the `ion-datetime` component there is no directive available to set a default date _when_ opened. Currently, you can set a `value` but that's not expected. I have a section in a registration that has the birthday selection that is not required (not my decision to make it optional). Anyways, the powers that be don't like how when the datetime component is opened the default date is today. And since it is February and there are not 31 days in the month the powers that be wish that we default the month to January `x` year where they would be 18+.

**Describe Preferred Solution**

``

**Describe Alternatives**

**Related Code**

**Additional Context**

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.