mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-03-05 05:37:08 +01:00
rollback isInEditor check for void nodes
This commit is contained in:
parent
8eb8e26958
commit
4a2d7845ba
@ -291,9 +291,8 @@ class Content extends React.Component {
|
||||
throw err
|
||||
}
|
||||
|
||||
const allowEdit = el.isContentEditable || el.closest('[data-slate-void]')
|
||||
return (
|
||||
allowEdit &&
|
||||
el.isContentEditable &&
|
||||
(el === element || el.closest('[data-slate-editor]') === element)
|
||||
)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user