chore: better fix for #14728

This commit is contained in:
Dsaquel
2025-07-20 02:22:12 +02:00
committed by Noblet Ouways
parent 9586d0efa8
commit ddee12c481
2 changed files with 1 additions and 6 deletions

View File

@@ -7,7 +7,7 @@
role="grid"
@click="handlePickDate"
@mousemove="handleMouseMove"
@mousedown.prevent="handleMouseDown"
@mousedown="handleMouseDown"
@mouseup="handleMouseUp"
>
<tbody ref="tbodyRef">

View File

@@ -343,11 +343,6 @@ const handleDatePick = async (value: DateTableEmits, keepOpen?: boolean) => {
}
innerDate.value = newDate
emit(newDate, showTime.value || keepOpen)
// fix: https://github.com/element-plus/element-plus/issues/14728
if (props.type === 'datetime') {
await nextTick()
handleFocusPicker()
}
} else if (selectionMode.value === 'week') {
emit((value as WeekPickerEmits).date)
} else if (selectionMode.value === 'dates') {