Bugfix
This commit is contained in:
parent
9abf457f41
commit
61d2c43e04
|
@ -67,8 +67,10 @@ export default class Editor extends Component {
|
||||||
|
|
||||||
// This makes sure the editor is repositioned if the widgets change
|
// This makes sure the editor is repositioned if the widgets change
|
||||||
const observer = new MutationObserver(debounce(() => {
|
const observer = new MutationObserver(debounce(() => {
|
||||||
this.removeObserver && this.removeObserver();
|
if (this.element.current) {
|
||||||
this.removeObserver = this.initResizeObserver();
|
this.removeObserver && this.removeObserver();
|
||||||
|
this.removeObserver = this.initResizeObserver();
|
||||||
|
}
|
||||||
}));
|
}));
|
||||||
|
|
||||||
observer.observe(this.element.current, { childList: true, subtree: true });
|
observer.observe(this.element.current, { childList: true, subtree: true });
|
||||||
|
|
Loading…
Reference in New Issue