ElemeFE / ElemeFE/element

[Bug Report] DatePicker week type choosing wrong week when firstDayOfWeek is 2 and the begining of the month is Monday

Open
#19,660 2 comments 0 reactions 0 assignees View on GitHub
stale
Dominant language
Vue
Stars
54k
Forks
14.4k
PR merge metrics
No merged PRs in 30d

Description

### Element UI version
2.13.2

### OS/Browsers version
Windows 10/Opera 68.0.3618.125

### Vue version
2.5.21

### Reproduction Link
https://jsfiddle.net/20btuagp/

### Steps to reproduce
1. DatePicker with firstDayOfWeek: 2
2. Begining of the month: Monday
3. Pick e.g. 9-15 June
4. Get 16-22

### What is Expected?
It should pick correct week on every month.

### What is actually happening?
When the month begins with 1st Monday and the firstDayOfWeek is Tuesday it picks the next week instead of the correct one.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.