From a836a347861d7f0d3cb452bfe0f5b6e82cf04e31 Mon Sep 17 00:00:00 2001 From: Ian Storm Taylor Date: Tue, 7 Feb 2017 10:04:59 -0800 Subject: [PATCH] update void spacer to hide the cursor better in inlines --- src/components/void.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/void.js b/src/components/void.js index a1c445aa3..136fba965 100644 --- a/src/components/void.js +++ b/src/components/void.js @@ -96,6 +96,8 @@ class Void extends React.Component { } } else { Tag = 'span' + // COMPAT: In Chrome, without setting `display: inline-block` the cursor + // will disappear when placed before an inline void node. (2017/02/07) style = { display: 'inline-block', position: 'relative' @@ -144,7 +146,7 @@ class Void extends React.Component { } } else { style = { - position: 'relative', + position: 'absolute', top: '0px', left: '-9999px', textIndent: '-9999px',