From 2b94b07fdc8f1a82f507b99000add9b7dca2c3d8 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sun, 20 Aug 2023 11:16:52 +0530 Subject: refactor: adds evalvalue type instead of string --- examples/todo-list/style.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples/todo-list') diff --git a/examples/todo-list/style.css b/examples/todo-list/style.css index efe888f..66ec5f0 100644 --- a/examples/todo-list/style.css +++ b/examples/todo-list/style.css @@ -102,7 +102,7 @@ body * { box-sizing: border-box; } if(get-var(--is-editing), 'none', 'block') ) if(get-var(--is-editing), - call(':scope [data-element=edit-task-input]', focus), + call-method(':scope [data-element=edit-task-input]', focus), "") ; @@ -122,6 +122,7 @@ body * { box-sizing: border-box; } [data-element=task-text] { padding: .2rem .8rem; flex: 2; + --cssx-on-click: update(get-var(--task-item-id), --is-editing, "true"); } [data-element=task-text]::after { -- cgit v1.3.1