akveo / akveo/nebular

nb-datepicker min/ max date bypassed by direcetly editing input value

Aberta
#1,817 0 comentários 1 reação 0 responsáveis Ver no GitHub
bug module:components P2: important quality
Linguagem predominante
TypeScript
Estrelas
8.1k
Forks
1.5k
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

### Issue type

**I'm submitting a ...** (check one with "x")

* [ x] bug report
* [ ] feature request

### Issue description
Max/ min on `nb-datepicker` allows user to pick date in a range, but the range could be bypassed easily by directly editing the input value. For example: `min="2017-07-01"` and `max="2019-07-20"`. A user picks 2019-06-05 but edit the value in the input to 2010-01-01 and the form is valid to proceed.

**Current behavior:**

Allows users to add any date by directly editing the input value and bypass the min/max range.

**Expected behavior:**

Make the input invalid if the value is out of range.

**Steps to reproduce:**

**Related code:**
```

```

### Other information:
**Angular, Nebular**
```
Angular 8 & Nebular 4
```

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.