Fix links in locked step texts elements [SCI-7224]

This commit is contained in:
Anton 2022-09-20 15:44:52 +02:00
parent b36a91ef85
commit 07f0142789
3 changed files with 8 additions and 1 deletions

View file

@ -10,6 +10,12 @@
flex: 0;
}
.view-text-element {
a {
pointer-events: initial;
}
}
.empty-text-element {
color: $color-silver-chalice;
}

View file

@ -28,7 +28,7 @@
@editingDisabled="disableEditMode"
@editingEnabled="enableEditMode"
/>
<div v-else-if="element.attributes.orderable.text_view" v-html="element.attributes.orderable.text_view"></div>
<div class="view-text-element" v-else-if="element.attributes.orderable.text_view" v-html="element.attributes.orderable.text_view"></div>
<div v-else class="empty-text-element">
{{ i18n.t("protocols.steps.text.empty_text") }}
</div>

View file

@ -120,6 +120,7 @@
let textArea = `#${this.objectType}_textarea_${this.objectId}`;
if (this.active) return
if (e && $(e.target).prop("tagName") === 'A') return
if (e && $(e.target).hasClass('atwho-user-popover')) return
if (e && $(e.target).hasClass('record-info-link')) return
if (e && $(e.target).parent().hasClass('atwho-inserted')) return