From 84738d6a633e8c9ee1f9d517f91c2c6df0fd7a13 Mon Sep 17 00:00:00 2001 From: Ayo Date: Sat, 18 Nov 2023 00:55:46 +0100 Subject: [PATCH] fix(site): demo input not updating correct attrib --- site/src/pages/demo.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/site/src/pages/demo.html b/site/src/pages/demo.html index 376e944..3603d59 100644 --- a/site/src/pages/demo.html +++ b/site/src/pages/demo.html @@ -52,10 +52,10 @@ > {{ count }}
- +
const name = "Nitro" @@ -84,10 +84,10 @@ <body> <a href="/demo/about">{{ count }}</a> <div> - <my-hello-world id="my-hello" data-name="{{name }}"></my-hello-world> + <my-hello-world id="my-hello" my-name="{{name}}"></my-hello-world> <input placeholder="Type your name here" - onkeyup="document.getElementById('my-hello').setAttribute('data-name', this.value)" + onkeyup="document.getElementById('my-hello').setAttribute('my-name', this.value)" /> </div> <code-block language="js">const name = "Nitro"</code-block>