mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
chore: better fix for #14728
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
role="grid"
|
||||
@click="handlePickDate"
|
||||
@mousemove="handleMouseMove"
|
||||
@mousedown.prevent="handleMouseDown"
|
||||
@mousedown="handleMouseDown"
|
||||
@mouseup="handleMouseUp"
|
||||
>
|
||||
<tbody ref="tbodyRef">
|
||||
|
||||
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user