fix(calendar): scrollToDate method is invalid (#10432)

This commit is contained in:
Alan Wang
2022-03-25 23:21:56 -04:00
committed by GitHub
parent 66cb711066
commit 0eae222b88

View File

@@ -308,8 +308,8 @@ export default defineComponent({
// add Math.floor to avoid decimal height issues
// https://github.com/youzan/vant/issues/5640
bodyHeight = Math.floor(useRect(bodyRef).height);
scrollToCurrentDate();
});
scrollToCurrentDate();
};
const reset = (date = getInitialDate()) => {