NEWS: Welcome to my new homepage! <3

Fixed property binding - figure - Unnamed repository; edit this file 'description' to name the repository.

figure

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit dd2da6550fa4ae379570821d64d6a5a66cc3468e
parent 0afd01d29305b94ca2cbf1157bd77ff9fcf67c03
Author: typable <contact@typable.dev>
Date:   Fri, 18 Nov 2022 09:32:31 +0100

Fixed property binding

Diffstat:
Mlib.js | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib.js b/lib.js @@ -112,8 +112,8 @@ const render = (node, refs) => { attributes[`on${event.substring(0, 1).toUpperCase()}${event.substring(1)}`] = refs[ref]; } else if((match = /^\[(\w+)\]$/.exec(key)) !== null) { - const event = match[1]; - attributes['value'] = refs[ref]; + const property = match[1]; + attributes[property] = refs[ref]; } else { attributes[key] = refs[ref];