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>
This commit is contained in:
parent
4604c8d823
commit
f792eb5ae7
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user