Skip to content

Commit

Permalink
fix(taro-form-demo): 点击演示demo表单内的重置会触发提交表单事件bug修复 (#2415)
Browse files Browse the repository at this point in the history
  • Loading branch information
Skedush authored Jul 5, 2024
1 parent f2d2b3d commit 958d83d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/packages/form/demos/taro/demo1.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const Demo1 = () => {
labelPosition="right"
footer={
<>
<Button formType="submit" block type="primary">
<Button nativeType="submit" block type="primary">
提交
</Button>
</>
Expand Down
4 changes: 2 additions & 2 deletions src/packages/form/demos/taro/demo2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ const Demo2 = () => {
width: '100%',
}}
>
<Button formType="submit" type="primary">
<Button nativeType="submit" type="primary">
提交
</Button>
<Button formType="reset" style={{ marginLeft: '20px' }}>
<Button nativeType="reset" style={{ marginLeft: '20px' }}>
重置
</Button>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/packages/form/demos/taro/demo4.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ const Demo4 = () => {
width: '100%',
}}
>
<Button formType="submit" type="primary">
<Button nativeType="submit" type="primary">
提交
</Button>
<Button formType="reset" style={{ marginLeft: '20px' }}>
<Button nativeType="reset" style={{ marginLeft: '20px' }}>
重置
</Button>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/packages/form/demos/taro/demo7.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ const Demo7 = () => {
width: '100%',
}}
>
<Button formType="submit" type="primary">
<Button nativeType="submit" type="primary">
提交
</Button>
<Button formType="reset" style={{ marginLeft: '20px' }}>
<Button nativeType="reset" style={{ marginLeft: '20px' }}>
重置
</Button>
</div>
Expand Down

0 comments on commit 958d83d

Please sign in to comment.