diff --git a/src/main/webapp/resources/js/fims/cmmn/customElements.js b/src/main/webapp/resources/js/fims/cmmn/customElements.js index 261073ea..6d810052 100644 --- a/src/main/webapp/resources/js/fims/cmmn/customElements.js +++ b/src/main/webapp/resources/js/fims/cmmn/customElements.js @@ -206,8 +206,10 @@ class CurlyBrackets extends HTMLTemplateElement { node.setAttribute("ondblclick","{ondblclick}"); } - if(node.textContent.trim() != "" && node.textContent.indexOf(curlyBracketsOpen) == -1){ - node.textContent = "{"+node.textContent.trim()+"}"; + if(node.childElementCount == 0){ + if(node.textContent.trim() != "" && node.textContent.indexOf(curlyBracketsOpen) == -1){ + node.textContent = "{"+node.textContent.trim()+"}"; + } } });