fix(site): demo input not updating correct attrib
This commit is contained in:
parent
0c1508b228
commit
84738d6a63
1 changed files with 4 additions and 4 deletions
|
@ -52,10 +52,10 @@
|
|||
>
|
||||
<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>
|
||||
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue