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:
@@ -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} />
|
||||
}
|
||||
|
Reference in New Issue
Block a user