diff --git a/apps/editor/src/ui/components/toolbar/customPopupBody.ts b/apps/editor/src/ui/components/toolbar/customPopupBody.ts index dfe9612b7d..2aec6f9c12 100644 --- a/apps/editor/src/ui/components/toolbar/customPopupBody.ts +++ b/apps/editor/src/ui/components/toolbar/customPopupBody.ts @@ -17,6 +17,11 @@ export class CustomPopupBody extends Component { this.refs.el.appendChild(this.props.body); } + updated(prevProps: Props) { + // update custom popup element + this.refs.el.replaceChild(this.props.body, prevProps.body); + } + render() { return html`
(this.refs.el = el)}>
`; }