mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-24 18:36:51 +08:00
fix(Calendar): throw an error that scrollTop in undefined when poppable in popup (#11140)
This commit is contained in:
parent
036753f52c
commit
8b515a8c2b
@ -172,7 +172,9 @@ export default createComponent({
|
||||
mounted() {
|
||||
this.init();
|
||||
// https://github.com/vant-ui/vant/issues/9845
|
||||
this.vanPopup?.$on('opened', this.onScroll);
|
||||
if (!this.poppable) {
|
||||
this.vanPopup?.$on('opened', this.onScroll);
|
||||
}
|
||||
},
|
||||
|
||||
/* istanbul ignore next */
|
||||
|
Loading…
x
Reference in New Issue
Block a user