This commit is contained in:
Rainer Simon 2020-09-11 11:18:59 +02:00
parent 31a2d13cdb
commit 26ee0d7868
1 changed files with 6 additions and 6 deletions

View File

@ -11,12 +11,12 @@ export default class DOMWidget extends Component {
if (this.element.current) { if (this.element.current) {
if (this.props.annotation !== next.annotation) { if (this.props.annotation !== next.annotation) {
const widgetEl = this.props.widget({ const widgetEl = this.props.widget({
annotation: this.props.annotation, annotation: next.annotation,
readOnly: this.props.readOnly, readOnly: next.readOnly,
onAppendBody: body => this.props.onAppendBody(body), onAppendBody: body => next.onAppendBody(body),
onUpdateBody: (previous, updated) => this.props.onUpdateBody(previous, updated), onUpdateBody: (previous, updated) => next.onUpdateBody(previous, updated),
onRemoveBody: body => this.props.onRemoveBody(body), onRemoveBody: body => next.onRemoveBody(body),
onSaveAndClose: () => this.props.onSaveAndClose() onSaveAndClose: () => next.onSaveAndClose()
}); });
// Delete previous rendered state // Delete previous rendered state