Minor change in preparation for better headless

This commit is contained in:
Rainer Simon 2020-08-23 20:58:30 +02:00
parent 7247a22f2c
commit b280a7daeb
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ const Editor = props => {
// Note that ResizeObserver fires once when observation starts
return initResizeObserver();
}
}, [ props.selectedElement, bounds(props.selectedElement) ]);
}, [ props.annotation, props.selectedElement, bounds(props.selectedElement) ]);
const initResizeObserver = () => {
if (window.ResizeObserver) {