Skip to content
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

[FIX][16.0] web_refresher: error when dom destroyed during timeout #3086

Merged
merged 1 commit into from
Feb 10, 2025

Conversation

miikanissi
Copy link
Contributor

If you navigate out of the current view while the refresh animation is running, you will receive the following error:

UncaughtClientError > TypeError
Uncaught Javascript Error > Cannot read properties of null (reading 'remove')
TypeError: Cannot read properties of null (reading 'remove')
    at http://127.0.0.1:8089/web/assets/5713-67df1f9/web.assets_backend.min.js:1860:125

This is due to the fact that the dom element does not exist anymore. This patch adds an extra check to ensure the content exists after the animation timeout finishes.

Copy link
Contributor

@CarlosRoca13 CarlosRoca13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check if needed in upper versions:

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 16.0-ocabot-merge-pr-3086-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit afb1a42 into OCA:16.0 Feb 10, 2025
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 77d728a. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants