Framework rendering fixes

This commit is contained in:
2025-10-20 15:09:16 +02:00
parent 3e0f2fb781
commit b23ef80a5f
4 changed files with 51 additions and 18 deletions

View File

@@ -26,9 +26,9 @@ const renderer = <T extends StringIndexedObject>( data: T, template: RenderTempl
if ( template.children.length === 0 ) {
if ( template.attribute ) {
parent.innerText = String( data[ template.attribute ] );
parent.textContent = String( data[ template.attribute ] );
} else {
parent.innerText = String( data );
parent.textContent = String( data );
}
}