mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-27 09:04:31 +02:00
fix hover manu example
This commit is contained in:
@@ -172,14 +172,16 @@ class HoveringMenu extends React.Component {
|
||||
* Render the editor.
|
||||
*
|
||||
* @param {Object} props
|
||||
* @param {Editor} editor
|
||||
* @param {Function} next
|
||||
* @return {Element}
|
||||
*/
|
||||
|
||||
renderEditor = (props, editor) => {
|
||||
renderEditor = (props, next) => {
|
||||
const { editor } = props
|
||||
const children = next()
|
||||
return (
|
||||
<React.Fragment>
|
||||
{props.children}
|
||||
{children}
|
||||
<HoverMenu innerRef={menu => (this.menu = menu)} editor={editor} />
|
||||
</React.Fragment>
|
||||
)
|
||||
|
Reference in New Issue
Block a user