File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
packages/rrweb/src/record Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -218,17 +218,17 @@ export default class MutationBuffer {
218
218
// we have a new parentNode for a 'row' of DOM children
219
219
// perf: we reuse these calculations across all child nodes
220
220
221
- ancestorBad =
222
- isSelfOrAncestorInSet ( this . droppedSet , parentNode ) ||
223
- this . removesSubTreeCache . has ( parentNode ) ;
224
-
225
- if ( ancestorBad && isSelfOrAncestorInSet ( this . movedSet , n ) ) {
226
- // not bad, just moved
227
- ancestorBad = false ;
228
- }
229
221
if ( ! inDom ( parentNode ) ) {
230
- // this check should overrule moved also
231
222
ancestorBad = true ;
223
+ } else {
224
+ ancestorBad =
225
+ isSelfOrAncestorInSet ( this . droppedSet , parentNode ) ||
226
+ this . removesSubTreeCache . has ( parentNode ) ;
227
+
228
+ if ( ancestorBad && isSelfOrAncestorInSet ( this . movedSet , n ) ) {
229
+ // not bad, just moved
230
+ ancestorBad = false ;
231
+ }
232
232
}
233
233
234
234
if ( this . addedSet . has ( parentNode . lastChild as Node ) ) {
You can’t perform that action at this time.
0 commit comments