update according to solution

This commit is contained in:
Andreas Zweili 2021-01-18 20:46:47 +01:00
parent 843bea6d06
commit 67e59b0df1
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@
<p>{{ firstInputValue }}</p>
<hr />
<!-- 3) Repeat 2) but only output the entered value if the ENTER key was pressed -->
<input type="text" v-on:keydown.enter="updateSecondOutput" />
<input type="text" v-on:keydown="updateFirstOutput" v-on:keyup.enter="updateSecondOutput" />
<p>{{ secondInputValue }}</p>
</section>
</body>