mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-20 22:21:20 +02:00
Removed pseudo-event object from lifecycle events (#2840)
This commit is contained in:
@@ -159,7 +159,7 @@ class Content extends React.Component {
|
|||||||
|
|
||||||
this.updateSelection()
|
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.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 })
|
debug('render', { props })
|
||||||
|
|
||||||
this.props.onEvent('onRender', {})
|
this.props.onEvent('onRender')
|
||||||
|
|
||||||
const data = {
|
const data = {
|
||||||
[DATA_ATTRS.EDITOR]: true,
|
[DATA_ATTRS.EDITOR]: true,
|
||||||
|
Reference in New Issue
Block a user