1
0
mirror of https://github.com/jaandrle/deka-dom-el synced 2025-07-04 21:42:14 +02:00

🐛 Process primitives & signals correctly in createElement/assign

This commit is contained in:
2023-09-21 12:35:27 +02:00
parent 84bcac0ec9
commit cc69018d99
11 changed files with 610 additions and 613 deletions

View File

@ -84,9 +84,7 @@ S.el= function(signal, map){
import { typeOf } from './helpers.js';
export const signals_config= {
isTextContent(attributes){
return typeOf(attributes)==="string" || ( isSignal(attributes) && typeOf(valueOfSignal(attributes))==="string" );
},
isSignal,
processReactiveAttribute(_, key, attrs, assignNth){
//TODO DOC: once the signal is used as attribute, there is no reason to use assign again (if for some reason needed, use imperative listeners clear with `S.clear`)
if(!isSignal(attrs)) return attrs;