angular / angular/components

Datepicker: When selecting a month in a year/month mode, the day selection flashes on click

Đang mở
#20,904 3 bình luận 9 reaction 0 người được giao Xem trên GitHub
area: material/datepicker P3
Ngôn ngữ chính
TypeScript
Star
25k
Fork
6.8k
Merge trung bình
1 ngày 8 giờ
Pull request đã merge (30 ngày)
91

Mô tả

#### Reproduction

https://stackblitz.com/angular/kgvngvkblme?file=src%2Fapp%2Fdatepicker-views-selection-example.ts

Steps to reproduce:
1. Click on the calendar icon
2. Select a year
3. Select a month

This is actually the example from https://material.angular.io/components/datepicker/overview, although I found it more noticeable in my app

#### Expected Behavior

The datepicker calendar should close immediately.

#### Actual Behavior

When clicked on the month, the calendar briefly switches into monthly view (therefore displaying all the weeks and days), before closing.

#### Environment

- Angular: 10.2.0
- CDK/Material: 10.2.5
- Browser(s): Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): macOS

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

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

Hướng nghiên cứu

Bắt đầu với bản tái hiện trên StackBlitz, đặc biệt là src/app/datepicker-views-selection-example.ts, và tái hiện việc chọn năm rồi đến tháng trong Angular datepicker. Theo dõi quá trình chuyển tiếp sau khi chọn tháng và xác minh rằng lịch đóng ngay lập tức mà không hiển thị thoáng qua chế độ xem ngày.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
angular, typescript
Lĩnh vực
frontend
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
30/100

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.