From adbd5d9102fad8925defc59c90a2a0549a6e247b Mon Sep 17 00:00:00 2001 From: bttf <2374625+bttf@users.noreply.github.com> Date: Wed, 25 Oct 2023 10:31:48 -0700 Subject: [PATCH] remove console.error --- src/index.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/index.ts b/src/index.ts index ea95468..e96b3e9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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);