angular-ui / angular-ui/ui-router

URL param with type date and default value null breaks

オープン
#3,816 コメント 3 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。