-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[User Feedback] Feedback button is not attached to DOM, when it is initialized while DOCUMENT is still loading #12970
Comments
Hello @jaspreet57, thanks for filing this and providing how to fix it :) Is this something you maybe would like to contribute yourself via a PR? If not, we'd happily do it, just let us know. |
Thanks @andreiborza for a quick reply. Yes I am working on it. I will try to raise a PR soon, if I am able to meet the contribution requirements and pass the test cases. Else I will let you know by EOD. |
@jaspreet57 great! Feel free to ask for help or skip parts you can't figure out. |
@andreiborza I have raised a PR. This line is not covered by any of the existing unit test cases. I guess this line will be covered in e2e or browser-integration-tests. I couldn't run e2e tests yet. can I skip test cases if sentry team can write that later? I need this fix sooner in my Nuxt project. |
@jaspreet57 thanks, taking a look! |
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/vue
SDK Version
8.18.0
Framework Version
2.6.12
Link to Sentry event
No response
SDK Setup/Reproduction Example
It is a basic setup. Only difference here is that I am using Nuxt, in which when
Sentry.init
is called, during that timeDOCUMENT.readyState is still equal to 'loading'.
And I have already found that there is a Bug in
packages/feedback/src/core/integration.ts
. And bug is that appendToDom method is not called.Fix will be : (I tested it already and it is working)
Steps to Reproduce
@sentry/vue
in nuxt (vue) app.Expected Result
User Feedback button should be visible in the application regardless of when it is initialized.
Actual Result
User Feedback button is not visible.
The text was updated successfully, but these errors were encountered: