fix: Focus on empty document after creation

fix: Clicking in whitespace below document should focus
Remove unused component
This commit is contained in:
Tom Moor
2020-02-26 22:29:22 -08:00
parent dac2d43f55
commit f0afa67012
5 changed files with 22 additions and 50 deletions

View File

@@ -280,9 +280,9 @@ const EditorTooltip = ({ children, ...props }) => (
</Tooltip>
);
export default withRouter(
withTheme(
// $FlowIssue - https://github.com/facebook/flow/issues/6103
React.forwardRef((props, ref) => <Editor {...props} forwardedRef={ref} />)
)
);
const EditorWithRouterAndTheme = withRouter(withTheme(Editor));
// $FlowIssue - https://github.com/facebook/flow/issues/6103
export default React.forwardRef((props, ref) => (
<EditorWithRouterAndTheme {...props} forwardedRef={ref} />
));