diff --git a/packages/slate-react/src/components/content.js b/packages/slate-react/src/components/content.js index 52c747ac5..1ac2e38e6 100644 --- a/packages/slate-react/src/components/content.js +++ b/packages/slate-react/src/components/content.js @@ -159,7 +159,7 @@ class Content extends React.Component { this.updateSelection() - this.props.onEvent('onComponentDidMount', { target: this.ref.current }) + this.props.onEvent('onComponentDidMount') } /** @@ -183,7 +183,7 @@ class Content extends React.Component { ) } - this.props.onEvent('onComponentWillUnmount', { target: this.ref.current }) + this.props.onEvent('onComponentWillUnmount') } /** @@ -195,7 +195,7 @@ class Content extends React.Component { this.updateSelection() - this.props.onEvent('onComponentDidUpdate', { target: this.ref.current }) + this.props.onEvent('onComponentDidUpdate') } /** @@ -514,7 +514,7 @@ class Content extends React.Component { debug('render', { props }) - this.props.onEvent('onRender', {}) + this.props.onEvent('onRender') const data = { [DATA_ATTRS.EDITOR]: true,