ionic-team / ionic-team/ionic-framework

feat: ion-datetime: default value when opened

Đang mở
#20,532 6 bình luận 3 reaction 0 người được giao Xem trên GitHub
package: core type: feature request
Ngôn ngữ chính
TypeScript
Star
52.7k
Fork
13.3k
Merge trung bình
1 ngày 15 giờ
Pull request đã merge (30 ngày)
51

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.