diff --git a/datex-bindings/dom-utils.ts b/datex-bindings/dom-utils.ts index 15e911c..624d756 100644 --- a/datex-bindings/dom-utils.ts +++ b/datex-bindings/dom-utils.ts @@ -899,6 +899,12 @@ export class DOMUtils { let newNode: any; // is function + + // collapse pointer if function + if (value instanceof Datex.ReactiveValue && typeof value.val == "function") { + value = value.val; + } + if (typeof value == "function") { if (client_type == "deno") { newNode = document.createElement("uix-placeholder"); diff --git a/datex-bindings/transform-wrapper.ts b/datex-bindings/transform-wrapper.ts index fe4462c..9a4b861 100644 --- a/datex-bindings/transform-wrapper.ts +++ b/datex-bindings/transform-wrapper.ts @@ -18,11 +18,11 @@ function appendToFragment(domUtils: DOMUtils, context: DOMContext, fragment: HTM export function getTransformWrapper(domUtils: DOMUtils, context: DOMContext) { return { // special uix-fragment wrapper for transforms - // wrap_transform(val:any) { - // const fragment = context.document.createElement("uix-fragment"); - // appendToFragment(domUtils, context, fragment, val); - // return fragment; - // }, + wrap_transform(val:any) { + const fragment = context.document.createElement("uix-fragment"); + appendToFragment(domUtils, context, fragment, val); + return fragment; + }, allow_transform_value(type: Datex.Type) { return allDomTypes.has(type.root_type) || type.root_type.name == "uix" || "must be a DOM element"