From 9fc8b1085a11d87c2236b3baf227c8a77da6aa9e Mon Sep 17 00:00:00 2001 From: Alban Suchaire Date: Mon, 11 Jun 2018 01:26:51 +0200 Subject: [PATCH] Set position data-slate-spacer block (#1862) * Add position absolute to `data-slate-spacer` block * Fix lint && update test --- packages/slate-react/src/components/void.js | 1 + .../slate-react/test/rendering/fixtures/custom-block-void.js | 2 +- .../slate-react/test/rendering/fixtures/custom-inline-void.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/slate-react/src/components/void.js b/packages/slate-react/src/components/void.js index 9d0c19b89..867681297 100644 --- a/packages/slate-react/src/components/void.js +++ b/packages/slate-react/src/components/void.js @@ -63,6 +63,7 @@ class Void extends React.Component { height: '0', color: 'transparent', outline: 'none', + position: 'absolute', } const spacer = ( 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 29a9fd0f6..cadd8b2da 100644 --- a/packages/slate-react/test/rendering/fixtures/custom-block-void.js +++ b/packages/slate-react/test/rendering/fixtures/custom-block-void.js @@ -32,7 +32,7 @@ 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 4e6d54dcc..5e6f0c8b4 100644 --- a/packages/slate-react/test/rendering/fixtures/custom-inline-void.js +++ b/packages/slate-react/test/rendering/fixtures/custom-inline-void.js @@ -37,7 +37,7 @@ export const output = ` - +