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

style fixes

This commit is contained in:
Ian Storm Taylor
2017-02-17 10:54:50 -08:00
parent 85b901a4d0
commit ea9920df5f

View File

@@ -91,9 +91,7 @@ class Void extends React.Component {
// Make the outer wrapper relative, so the spacer can overlay it.
if (node.kind === 'block') {
Tag = 'div'
style = {
position: 'relative'
}
style = { position: 'relative' }
} else {
Tag = 'span'
}
@@ -139,8 +137,9 @@ class Void extends React.Component {
textIndent: '-9999px'
}
} else {
// Set `color` to `transparent` to hide caret inside the spacer.
style = {color: 'transparent'}
style = {
color: 'transparent'
}
}
return (