mirror of
https://github.com/element-plus/element-plus.git
synced 2025-03-07 15:47:57 +08:00
fix(components): [date-picker] fix error when type="daterange" (#7858)
This commit is contained in:
parent
7ff199c60f
commit
ec8ac5e47b
@ -406,7 +406,7 @@ export default defineComponent({
|
||||
const newDate = getDateOfCell(row, column)
|
||||
|
||||
if (props.selectionMode === 'range') {
|
||||
if (!props.rangeState.selecting) {
|
||||
if (!props.rangeState.selecting || !props.minDate) {
|
||||
ctx.emit('pick', { minDate: newDate, maxDate: null })
|
||||
ctx.emit('select', true)
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user