Closes #54
This commit is contained in:
parent
0c9e7fba1a
commit
ad47392c13
|
@ -158,7 +158,8 @@ const Editor = props => {
|
|||
}) : false;
|
||||
|
||||
const hasDelete = currentAnnotation &&
|
||||
currentAnnotation.bodies.length > 0 && // annotation has bodies,
|
||||
// annotation has bodies or allowEmpty,
|
||||
(currentAnnotation.bodies.length > 0 || props.config.allowEmpty) &&
|
||||
!props.readOnly && // we are not in read-only config,
|
||||
!currentAnnotation.isSelection && // this is not a selection, and
|
||||
!widgets.some(isReadOnlyWidget); // every widget is deletable
|
||||
|
|
Loading…
Reference in New Issue