Skip to content

Commit

Permalink
remove console.error
Browse files Browse the repository at this point in the history
  • Loading branch information
bttf committed Oct 25, 2023
1 parent 8c749ea commit adbd5d9
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,13 +183,8 @@ const setElementPosition = (el: Element, value: ElementPositionWithDomNode) => {
value.insertBeforeNode &&
!value.parentNode.contains(value.insertBeforeNode)
) {
console.error(
'position mutation skipped - insertBeforeNode not a child of parent',
{
el,
...value,
}
);
// skip position mutation - insertBeforeNode not a child of parent. happens
// when mutation observer for indvidual element fires out of order
return;
}
value.parentNode.insertBefore(el, value.insertBeforeNode);
Expand Down

0 comments on commit adbd5d9

Please sign in to comment.