1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-27 09:04:31 +02:00

update void spacer to hide the cursor better in inlines

This commit is contained in:
Ian Storm Taylor
2017-02-07 10:04:59 -08:00
parent 4f439ab3ca
commit a836a34786

View File

@@ -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',