--- a/client/src/components/SlateEditor/index.js Wed Dec 05 23:52:25 2018 +0100
+++ b/client/src/components/SlateEditor/index.js Thu Dec 06 00:46:53 2018 +0100
@@ -295,10 +295,9 @@
if(!ref) {
return;
}
- const wrappedRef = ref.getWrappedInstance();
- const editorRef = (wrappedRef && wrappedRef.props) ? wrappedRef.props.editorRef : null;
+ const editorRef = (ref && ref.props) ? ref.props.editorRef : null;
if(editorRef && editorRef.hasOwnProperty('current')) {
- editorRef.current = wrappedRef;
+ editorRef.current = ref;
}
}
-})(connect(mapStateToProps, null, null, { withRef: true })(SlateEditor));
+})(connect(mapStateToProps, null, null, { forwardRef: true })(SlateEditor));