ionic-team / ionic-team/ionic-framework

feat: ion-datetime: default value when opened

Offen
#20,532 6 Kommentare 3 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
package: core type: feature request
Vorherrschende Sprache
TypeScript
Sterne
52.7k
Forks
13.3k
Ø Merge
1 T. 15 Std.
Gemergte PRs (30 T.)
51

Beschreibung

# 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**

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.