Skip to content

Commit 4e6bed8

Browse files
authored
fix: wrong button type in submit test cases (#2836)
#2833 breaks some tests where the button must be of type `submit` rather than `button`. This PR fixes this.
1 parent bbfea75 commit 4e6bed8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/partials_test.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1759,7 +1759,7 @@ Deno.test({
17591759
</Partial>
17601760
<SelfCounter />
17611761
<button
1762-
type="button"
1762+
type="submit"
17631763
class="update"
17641764
name="submitter"
17651765
value="sub"
@@ -1813,7 +1813,7 @@ Deno.test({
18131813
</Partial>
18141814
<SelfCounter />
18151815
<button
1816-
type="button"
1816+
type="submit"
18171817
class="update"
18181818
name="submitter"
18191819
value="sub"
@@ -1871,7 +1871,7 @@ Deno.test({
18711871
</Partial>
18721872
<SelfCounter />
18731873
<button
1874-
type="button"
1874+
type="submit"
18751875
class="update"
18761876
name="submitter"
18771877
value="sub"
@@ -1931,7 +1931,7 @@ Deno.test({
19311931
<p class="init">init</p>
19321932
</Partial>
19331933
<SelfCounter />
1934-
<button type="button" class="update">
1934+
<button type="submit" class="update">
19351935
update
19361936
</button>
19371937
</form>

0 commit comments

Comments
 (0)