Is the default prop "root" of "InView" is "Document"? #444
-
I don't see any configuration that specifies that the default root is Document. react-intersection-observer/src/InView.tsx Lines 70 to 74 in 975bff0
For Intersection Observer, "root option can be a Document" is new feature. So I need to determine the issue to the point where I need to customize an InView component. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The
I think the one you're looking at, is for handling a child document (e.g. iframe). |
Beta Was this translation helpful? Give feedback.
The
default
value is whatever the browser sets as thedefault
, which is the browser viewport.I think the one you're looking at, is for handling a child document (e.g. iframe).