ElemeFE / ElemeFE/element

[Bug Report] el-time-picker value-format 'time=MM:hh:ss' Wrong selection of input part of input

Open
#21,256 1 comment 0 reactions 0 assignees View on GitHub
component: time-picker type: bug
Dominant language
Vue
Stars
54k
Forks
14.4k
PR merge metrics
No merged PRs in 30d

Description

### Element UI version
2.15.5

### OS/Browsers version
win10

### Vue version
2.6.14

### Reproduction Link
https://codepen.io/sroke/pen/dyRybZV

### Steps to reproduce
if format = "时间是: HH:mm:ss"
When the mouse is placed on the HH of the drop-down box, the content of the input box is not in the HH part, but on the first two characters(时间)

### What is Expected?
Calculate the offset according to format and locate the position automatically selected in the input box

### What is actually happening?
···
this.$emit('select-range',0,2)
this.$emit('select-range',3,4)
this.$emit('select-range',6,8)
···
It's fixed

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.