fix(Calendar): should only scroll calendar body when inited (#6926)

This commit is contained in:
neverland
2020-08-02 16:49:57 +08:00
committed by GitHub
parent 81de225e69
commit 39c6637894
4 changed files with 15 additions and 30 deletions
+2 -1
View File
@@ -208,7 +208,8 @@ export default createComponent({
this.months.some((month, index) => {
if (compareMonth(month, targetDate) === 0) {
this.$refs.months[index].scrollIntoView();
const { body, months } = this.$refs;
months[index].scrollIntoView(body);
return true;
}