You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a <form>element with an nz-form attribute which contains a child <span> element with nzCopyable and nzContent attributes. Add an (ngSubmit) callback to the form. In the running app, click the icon to copy the nzCopyable text.
What is expected?
The text should be copied without submitting the form
What is actually happening?
The text is copied and the form is also submitted.
Environment
Info
ng-zorro-antd
11.4.0
Browser
Google Chrome 89.0.4389.114 (Official Build) (64-bit)
The text was updated successfully, but these errors were encountered:
Reproduction link
https://stackblitz.com/edit/ng-zorro-antd-ivy-dyfeqh?file=src%2Fapp%2Fapp.component.ts
Steps to reproduce
Create a
<form>
element with annz-form
attribute which contains a child<span>
element withnzCopyable
andnzContent
attributes. Add an(ngSubmit)
callback to the form. In the running app, click the icon to copy the nzCopyable text.What is expected?
The text should be copied without submitting the form
What is actually happening?
The text is copied and the form is also submitted.
The text was updated successfully, but these errors were encountered: