@servlyadmin/runtime-core 0.1.15 → 0.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -1
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -20156,7 +20156,8 @@ function update(state, newContext) {
|
|
|
20156
20156
|
const newTextContent = getTextContent(element, newContext);
|
|
20157
20157
|
if (newTextContent !== elementState.textContent) {
|
|
20158
20158
|
const children = state.elements.filter((el) => el.parent === elementId);
|
|
20159
|
-
|
|
20159
|
+
const isComponentView = element.isComponentView;
|
|
20160
|
+
if (children.length === 0 && !isComponentView && domElement.children.length === 0) {
|
|
20160
20161
|
domElement.textContent = newTextContent;
|
|
20161
20162
|
}
|
|
20162
20163
|
elementState.textContent = newTextContent;
|
package/dist/index.js
CHANGED
|
@@ -3360,7 +3360,8 @@ function update(state, newContext) {
|
|
|
3360
3360
|
const newTextContent = getTextContent(element, newContext);
|
|
3361
3361
|
if (newTextContent !== elementState.textContent) {
|
|
3362
3362
|
const children = state.elements.filter((el) => el.parent === elementId);
|
|
3363
|
-
|
|
3363
|
+
const isComponentView = element.isComponentView;
|
|
3364
|
+
if (children.length === 0 && !isComponentView && domElement.children.length === 0) {
|
|
3364
3365
|
domElement.textContent = newTextContent;
|
|
3365
3366
|
}
|
|
3366
3367
|
elementState.textContent = newTextContent;
|