mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(Calendar): incorrectly selected when a date is disabled (#10196)
This commit is contained in:
parent
0de7b9c0b9
commit
6dbd0caf2b
@ -406,7 +406,11 @@ export default defineComponent({
|
||||
);
|
||||
|
||||
if (disabledDay) {
|
||||
select([startDay, getPrevDay(disabledDay)]);
|
||||
if(startDay.getTime() >= getPrevDay(disabledDay).getTime()) {
|
||||
select([date]);
|
||||
}else {
|
||||
select([startDay, getPrevDay(disabledDay)]);
|
||||
}
|
||||
} else {
|
||||
select([startDay, date], true);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user