ElemeFE / ElemeFE/element

[bug report] datetimepicker limit time minute second range bug

Open
#18,495 5 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.0

### OS/Browsers version
window10

### Vue version
2.5.20

### Reproduction Link
https://codepen.io/pen/?&editable=true

### Steps to reproduce
在线编辑或者项目中使用DateTimePicker 给它picker-options加入时分秒限制selectableRange:‘9:00:00-18:00:00‘;然后点击组件选择时分秒

### What is Expected?
可以正确限制选择为 限制时间区间的时间 就算选择此刻 也应该在限制范围的最小最大范围

### What is actually happening?
实际上 时跟分确实可以disable 然而 秒并没有disable;然后滚动到disable区域直接确定 还是可以选择限制之外的时间,点击此刻 也是限制之外的时间; 限制生效时好时坏

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the DateTimePicker implementation and reproduce the issue using picker-options.selectableRange set to 9:00:00-18:00:00. Check the time, minute, and second selection behavior, including scrolling into disabled values and choosing the current time; done means all selections stay within the configured range.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.