mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-05 19:41:45 +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) => {
|
||||
if (!isDef(root)) {
|
||||
if (!isDef(root) || (!root.width && !root.height)) {
|
||||
return;
|
||||
}
|
||||
if (offsetTop >= root.top) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user