fix(caption): honour carriage returns in datalayer description

fix #2385
This commit is contained in:
Yohan Boniface 2024-12-19 10:33:32 +01:00
parent 0e78d58c03
commit 0bc4900b16

View file

@ -73,7 +73,7 @@ export default class Caption extends Utils.WithTemplate {
<p class="caption-item ${datalayer.cssId}">
<span class="datalayer-legend"></span>
<strong data-ref="toolbox"></strong>
<span data-ref="description"></span>
<span class="text" data-ref="description"></span>
</p>`
const [element, { toolbox, description }] = Utils.loadTemplateWithRefs(template)
if (datalayer.options.description) {