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:
thinkasany 2024-11-29 10:20:37 +08:00 committed by GitHub
parent 8363b72be4
commit 1cf151575d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)
}