angular/components

DatePicker not showing initial value when using MomentAdapter

已关闭

#13,264 创建于 2018年9月22日

 (5 条评论) (0 个反应) (0 位负责人)TypeScript (6,650 个派生)batch import
P3area: material/datepickerhelp wanted

仓库指标

星标
 (24,044 个星标)
PR 合并指标
 (平均合并 3天 12小时) (30 天内合并 98 个 PR)

描述

Bug, feature request, or proposal:

Bug

What is the expected behavior?

The datepicker should show the initial value when provided.

What is the current behavior?

It does not

What are the steps to reproduce?

https://stackblitz.com/angular/kbyqgkdyyjo?file=app%2Fdatepicker-moment-example.ts

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Latest Angular. Chrome 69.0.3497.100 FireFox 62

Is there anything else we should know?

It is working here for some reason. https://material.angular.io/components/datepicker/overview#choosing-a-date-implementation-and-date-format-settings

贡献者指南