mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
fix(sticky): fix error in transition & sticky (#5483)
This commit is contained in:
parent
8021e7cdfd
commit
9ead748d91
@ -89,7 +89,7 @@ VantComponent({
|
|||||||
}
|
}
|
||||||
|
|
||||||
getRect(this, ROOT_ELEMENT).then((root) => {
|
getRect(this, ROOT_ELEMENT).then((root) => {
|
||||||
if (!isDef(root)) {
|
if (!isDef(root) || (!root.width && !root.height)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (offsetTop >= root.top) {
|
if (offsetTop >= root.top) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user