Skip to content

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

@RodolpheBansard

Description

@RodolpheBansard

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions