mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 18:14:13 +00:00
fix(calendar): scrollToDate method is invalid (#10432)
This commit is contained in:
@@ -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()) => {
|
||||
|
Reference in New Issue
Block a user