-
-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
new InfiniteViewer will empty the iframe #52
Comments
Here is my minimal rendition |
@daybrush |
After looking at the source code, these two lines of code lead to if (!wrapperElement) {
wrapperElement = doc.createElement("div");
wrapperElement.insertBefore(this._viewportElement, null);
containerElement.insertBefore(wrapperElement, null);
} At present, I skipped here and solved it by manually specifying wrapperElement const infiniteViewer = new InfiniteViewer(view, viewport, {
wrapperElement: wrapper
} |
If there is an iframe inside the viewport, refresh may occur during the process of appendChild and insertBefore. The framework also creates a wrapper and sets it through props. |
@daybrush Yes, I temporarily solved it by setting wrapperElement |
There is an iframe in the viewport, and the content of the iframe will be cleared after the new InfiniteViewer
The text was updated successfully, but these errors were encountered: