mirror of
https://github.com/jaandrle/deka-dom-el
synced 2025-07-01 12:22:15 +02:00
Pre dev-memo
(#17)
* 🎉 * ➖ no good direction how to clean up not used in text re-rendering ⇒ needs to be more inside of `O.el` * 🐛 🔨 `O.el` * 🚀 implementing #16 * 💥 `on.(dis)connected` only once
This commit is contained in:
@ -84,7 +84,7 @@ function todoComponent({ textContent, value }){
|
||||
return el("li").append(
|
||||
O.el(is_editable, is=> is
|
||||
? el("input", { value: textContent(), type: "text" }, onedited)
|
||||
: el("span", { textContent, onclick: is_editable.bind(null, true) }),
|
||||
: el("span", { textContent, onclick: is_editable.bind(null, true) })
|
||||
),
|
||||
el("button", { type: "button", value, textContent: "-" }, onclick)
|
||||
);
|
||||
|
Reference in New Issue
Block a user