angular-ui / angular-ui/ui-router

URL param with type date and default value null breaks

Aberta
#3,816 3 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
TypeScript
Estrelas
13.4k
Forks
2.9k
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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 )

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.