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

NzImagePreviewOptions get reset on next() and prev() #7689

Open
thursday2008 opened this issue Oct 17, 2022 · 0 comments · May be fixed by #7702
Open

NzImagePreviewOptions get reset on next() and prev() #7689

thursday2008 opened this issue Oct 17, 2022 · 0 comments · May be fixed by #7702
Assignees

Comments

@thursday2008
Copy link

Reproduction link

https://stackblitz.com/edit/angular-sytkx7?file=src/app/app.component.ts

Steps to reproduce

Set options via nzImageService (e.g. as example given here: https://ng.ant.design/components/image/en#components-image-demo-service );
Open first image's preview (the options will be as they were specified);
Click next;

What is expected?

The same options will be applied for the other images

What is actually happening?

The options get reset on next and prev

Environment Info
ng-zorro-antd 14.1.0
Browser Chrome
@thursday2008 thursday2008 changed the title NzPreviewOptions get reset on next() and prev() NzImagePreviewOptions get reset on next() and prev() Oct 17, 2022
eyudinkov added a commit to eyudinkov/ng-zorro-antd that referenced this issue Oct 28, 2022
@eyudinkov eyudinkov linked a pull request Oct 28, 2022 that will close this issue
3 tasks
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.

3 participants