Commit b94062f
authored
fix(feedback): Prevent
An internal user reported seeing "NotFoundError: Failed to execute
'removeChild' on 'Node': The node to be removed is not a child of this
node." and the replay of their session confirms it:
https://sentry.sentry.io/explore/replays/127444034ae84099a84b524458b6dd90/
However, there is no matching JS error to give more clues.
What I think happened is that after interacting with the Feedback SDK
the widget got into a state where it was no longer mounted into the
page, but we called `removeFromDom()` anyway.
Looking at the replay i saw the moment when the feedback dom was aded to
the page, but it wasn't visible, only this got added at 18:51:
<img width="265" alt="SCR-20250411-lsav"
src="https://github.com/user-attachments/assets/1f65a174-1a8a-405c-8ce4-be0a10d09a64"
/>
So something prevented it from opening all the way up.
Fixes getsentry/sentry#89424removeFromDom() from throwing (#16030)1 parent de2f4b5 commit b94062f
File tree
3 files changed
+24
-4
lines changed- packages/feedback
- src
- core/components
- modal
- test/core/components
3 files changed
+24
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
| 49 | + | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
| 47 | + | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
65 | 85 | | |
0 commit comments