Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.

Commit 010c914

Browse files
authored
chore: add type attr to button (#42)
1 parent 7dade1d commit 010c914

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

content/1.vue/.template/files/app.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const count = ref(0)
44
</script>
55

66
<template>
7-
<button @click="count++">
7+
<button type="button" @click="count++">
88
Count is: {{ count }}
99
</button>
1010
</template>

content/1.vue/2.reactivity/.template/files/app.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function increment() {
1111
<div>
1212
<p>count is {{ count }}</p>
1313
<p>doubled is {{ doubled }}</p>
14-
<button @click="increment">
14+
<button type="button" @click="increment">
1515
+1
1616
</button>
1717
</div>

content/1.vue/2.reactivity/.template/solutions/app.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ function multiply() {
1515
<div>
1616
<p>count is {{ count }}</p>
1717
<p>result is {{ result }}</p>
18-
<button @click="increment">
18+
<button type="button" @click="increment">
1919
+1
2020
</button>
21-
<button @click="multiply">
21+
<button type="button" @click="multiply">
2222
x{{ multiplier }}
2323
</button>
2424
</div>

0 commit comments

Comments
 (0)