1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-22 23:12:52 +02:00

fix void selection behavior

This commit is contained in:
Ian Storm Taylor
2016-07-01 13:03:22 -07:00
parent 1c8986019d
commit aa8e295a2d
3 changed files with 19 additions and 18 deletions

View File

@@ -139,7 +139,7 @@ class Images extends React.Component {
return (props) => {
const { node, state } = props
const { data } = node
const isActive = state.blocks.includes(node)
const isActive = state.selection.isFocused && state.blocks.includes(node)
const src = data.get('src')
return <img src={src} data-active={isActive} />
}