diff --git a/packages/slate-react/src/components/void.js b/packages/slate-react/src/components/void.js index 4f45c9f9f..808eedc32 100644 --- a/packages/slate-react/src/components/void.js +++ b/packages/slate-react/src/components/void.js @@ -66,26 +66,24 @@ class Void extends React.Component { } const spacer = ( - + {this.renderText()} ) - const content = {children} + const content = ( + + {children} + + ) this.debug('render', { props }) return ( - + {readOnly ? null : spacer} {content} diff --git a/packages/slate-react/test/rendering/fixtures/custom-block-void.js b/packages/slate-react/test/rendering/fixtures/custom-block-void.js index cce0b0a4a..2b19c2276 100644 --- a/packages/slate-react/test/rendering/fixtures/custom-block-void.js +++ b/packages/slate-react/test/rendering/fixtures/custom-block-void.js @@ -31,15 +31,15 @@ export const value = ( export const output = `
-
-
+
+
-
+
diff --git a/packages/slate-react/test/rendering/fixtures/custom-inline-void.js b/packages/slate-react/test/rendering/fixtures/custom-inline-void.js index 89b7d5329..f5aadf645 100644 --- a/packages/slate-react/test/rendering/fixtures/custom-inline-void.js +++ b/packages/slate-react/test/rendering/fixtures/custom-inline-void.js @@ -36,15 +36,15 @@ export const output = ` - - + + - +