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:
@ -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;
|
||||
|
Reference in New Issue
Block a user