From 2265240c04abe7c06a7c9831cf89bc9265af85b7 Mon Sep 17 00:00:00 2001 From: Sunny Hirai Date: Tue, 28 May 2019 17:48:40 -0700 Subject: [PATCH] Removed pseudo-event object from lifecycle events (#2840) --- packages/slate-react/src/components/content.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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,