diff --git a/src/editor/Editor.jsx b/src/editor/Editor.jsx index 1be9cf0..efe04ea 100644 --- a/src/editor/Editor.jsx +++ b/src/editor/Editor.jsx @@ -40,7 +40,7 @@ const Editor = props => { if (element.current) setPosition(props.wrapperEl, element.current, props.selectedElement); - }, [ props.selectedElement ]); + }, [ props.selectedElement.getBoundingClientRect() ]); const onAppendBody = body => setCurrentAnnotation( currentAnnotation.clone({