angular / angular/components

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

未关闭
#20,904 3 条评论 9 个 reaction 已指派 0 人 在 GitHub 查看
area: material/datepicker P3
主要语言
TypeScript
星标
25k
派生
6.8k
平均合并
1 天 8 小时
30 天内合并 PR
91

描述

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

贡献指南

打开贡献指南

调研方向

从 StackBlitz 复现开始,尤其是 src/app/datepicker-views-selection-example.ts,并在 Angular datepicker 中复现先选择年份再选择月份的操作。跟踪选择月份后的过渡过程,并确认日视图不会短暂显示,日历会立即关闭。

由索引模型根据 Issue 内容生成。

评估

技术栈
angular, typescript
领域
frontend
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
30/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。