Explorar o código

fix: also check overflowY: overlay in detectScroll (#4806)

* fix: also check overflowY: overlay in detectScroll

* fix lint

Co-authored-by: dwelle <luzar.david@gmail.com>
Andelf %!s(int64=3) %!d(string=hai) anos
pai
achega
f792eb5ae7
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/utils.ts

+ 3 - 1
src/utils.ts

@@ -475,7 +475,9 @@ export const getNearestScrollableContainer = (
     const hasScrollableContent = parent.scrollHeight > parent.clientHeight;
     if (
       hasScrollableContent &&
-      (overflowY === "auto" || overflowY === "scroll")
+      (overflowY === "auto" ||
+        overflowY === "scroll" ||
+        overflowY === "overlay")
     ) {
       return parent;
     }