mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-28 09:29:49 +02:00
update void spacer to hide the cursor better in inlines
This commit is contained in:
@@ -96,6 +96,8 @@ class Void extends React.Component {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Tag = 'span'
|
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 = {
|
style = {
|
||||||
display: 'inline-block',
|
display: 'inline-block',
|
||||||
position: 'relative'
|
position: 'relative'
|
||||||
@@ -144,7 +146,7 @@ class Void extends React.Component {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
style = {
|
style = {
|
||||||
position: 'relative',
|
position: 'absolute',
|
||||||
top: '0px',
|
top: '0px',
|
||||||
left: '-9999px',
|
left: '-9999px',
|
||||||
textIndent: '-9999px',
|
textIndent: '-9999px',
|
||||||
|
Reference in New Issue
Block a user