1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-20 06:01:24 +02:00

Removed pseudo-event object from lifecycle events (#2840)

This commit is contained in:
Sunny Hirai
2019-05-28 17:48:40 -07:00
committed by GitHub
parent 78a795b40e
commit 2265240c04

View File

@@ -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,