From 9c597cf97f07c834ea0a3686d7d7d1db4322900d Mon Sep 17 00:00:00 2001 From: Ian Storm Taylor Date: Wed, 10 Oct 2018 01:04:35 -0700 Subject: [PATCH] fix hover manu example --- examples/hovering-menu/index.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/examples/hovering-menu/index.js b/examples/hovering-menu/index.js index aba12f396..aeca6ec57 100644 --- a/examples/hovering-menu/index.js +++ b/examples/hovering-menu/index.js @@ -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 ( - {props.children} + {children} (this.menu = menu)} editor={editor} /> )