mirror of
https://github.com/element-plus/element-plus.git
synced 2025-04-06 16:30:35 +08:00
fix(components): [time-picker] click the Cancel button twice to close time picker (#18938)
* fix(components): [time-picker] Cancel button twice to close Co-authored-by: xingyixiang <452282988@qq.com> Co-authored-by: cdk1025 <cdk1025@foxmail.com> * Update packages/components/time-picker/src/time-picker-com/panel-time-range.vue --------- Co-authored-by: xingyixiang <452282988@qq.com> Co-authored-by: cdk1025 <cdk1025@foxmail.com>
This commit is contained in:
parent
8363b72be4
commit
1cf151575d
@ -153,6 +153,9 @@ const isValidValue = (_date: Dayjs[]) => {
|
||||
}
|
||||
|
||||
const handleChange = (start: Dayjs, end: Dayjs) => {
|
||||
if (!props.visible) {
|
||||
return
|
||||
}
|
||||
// todo getRangeAvailableTime(_date).millisecond(0)
|
||||
emit('pick', [start, end], true)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user