|
@@ -592,7 +592,7 @@ export default class Shape extends Base {
|
|
|
|
|
|
handleContainerClick (event) {
|
|
|
event && event.stopPropagation()
|
|
|
- if (!this.hidden || this.layer.annotationStore.creating || ['redaction', 'remove'].includes(this.layer.tool) || document.querySelector('.compare-document-container').contains(event.target)) return
|
|
|
+ if (!this.hidden || this.layer.annotationStore.creating || ['redaction', 'remove'].includes(this.layer.tool) || document.querySelector('.compare-document-container').contains(event?.target)) return
|
|
|
this.hidden = false
|
|
|
this.updateTool()
|
|
|
onClickOutside([this.outerLine, this.freetextElement, this.deletetButton, this.replyButton, document.querySelector('.toggle-button')], this.handleOutside.bind(this))
|