aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2023-08-13 17:33:26 +0530
committerAkshay Nair <phenax5@gmail.com>2023-08-13 17:33:26 +0530
commit2c2bf0136a92b7ca49e7df952a44d9000a07fa8b (patch)
tree49115a10d023f9e4e66f7a4eee08f4e3ec8cf0d2 /src
parente4d70a54e97551f974a04379817e8baf152fa8d3 (diff)
downloadcss-everything-2c2bf0136a92b7ca49e7df952a44d9000a07fa8b.tar.gz
css-everything-2c2bf0136a92b7ca49e7df952a44d9000a07fa8b.zip
feat: test case for todo-app with adding new items
Diffstat (limited to '')
-rw-r--r--src/index.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/index.ts b/src/index.ts
index c90588b..b737865 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -97,6 +97,7 @@ const getEvalActions = (
},
getAttribute: async (id, name) => {
const $el = id ? document.getElementById(id) : $element
+ if (name === 'value') return ($el as any).value
return $el?.getAttribute(name) ?? undefined
},
withEvent: async fn => event && fn(event),