mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-25 02:41:46 +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() {
|
mounted() {
|
||||||
this.init();
|
this.init();
|
||||||
// https://github.com/vant-ui/vant/issues/9845
|
// https://github.com/vant-ui/vant/issues/9845
|
||||||
|
if (!this.poppable) {
|
||||||
this.vanPopup?.$on('opened', this.onScroll);
|
this.vanPopup?.$on('opened', this.onScroll);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/* istanbul ignore next */
|
/* istanbul ignore next */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user