Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NZ-TRANSFER] if we put the nz-tranfer component in a form, it will submit the form on firefox #7410

Closed
RodolpheBansard opened this issue May 5, 2022 · 0 comments · Fixed by #7413
Assignees

Comments

@RodolpheBansard
Copy link

Reproduction link

https://stackblitz.com/edit/ng-zorro-antd-ivy-nxs8zp

Steps to reproduce

Add a nz-transfer component in a form with some data.
Add a submit event on the form that perform an action
transfer an item

What is expected?

the submit event should not be triggered if I transfer an item

What is actually happening?

the form is submitted if I transfer an item

Environment Info
ng-zorro-antd 13.2.1
Browser Firefox

I don't have the bug in google chrome. it probably comes from the fact that firefox interprets transfer buttons as submit button. In this case, adding type="button" should fix the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants