ionic-team / ionic-team/ionic-framework
feat: ion-datetime: default value when opened
- 主要语言
- TypeScript
- 星标
- 52.7k
- 派生
- 13.3k
- 平均合并
- 1 天 15 小时
- 30 天内合并 PR
- 51
描述
# 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**
贡献指南
评估
这个 Issue 还没有评估数据。