Skip to content

Commit eaea291

Browse files
committed
fix: auto-apply on range select doesn't close the menu (fixes #1188)
1 parent 2fdb326 commit eaea291

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/VueDatePicker/components/DatePicker/useDatePicker.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,9 @@ export const useDatePicker = (
542542
checkRangeAutoApply(
543543
tempRange.value,
544544
emit,
545-
tempRange.value.length < 2 || props.flowStep !== flow.value?.steps?.length,
545+
tempRange.value.length < 2 || flow.value?.steps.length
546+
? props.flowStep !== flow.value?.steps?.length
547+
: false,
546548
);
547549
}
548550
};

0 commit comments

Comments
 (0)