angular-ui / angular-ui/ui-router

URL param with type date and default value null breaks

未关闭
#3,816 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
13.4k
派生
2.9k
PR 合并指标
30 天内没有已合并 PR

描述

This is a (check one box):

- [X] Bug Report
- [ ] Feature Request
- [ ] General Query

My version of UI-Router is: (type version)

1.0.27

# Bug Report

#### Current Behavior:

A URL param declaration with `type: 'date'` and default `value: null` throws:
`Cannot read property 'getFullYear' of null`

#### Expected Behavior:

It should work and set null as default value for this param

#### Link to Plunker or stackblitz that reproduces the issue:

( if you want a response to your issue, provide a way to reproduce it )
( http://bit.ly/UIR-Plunk1 )
( https://stackblitz.com/edit/ui-router-angularjs )

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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