akveo / akveo/nebular

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

Đang mở
#1,817 0 bình luận 1 reaction 0 người được giao Xem trên GitHub
bug module:components P2: important quality
Ngôn ngữ chính
TypeScript
Star
8.1k
Fork
1.5k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### 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
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.