NG-ZORRO/ng-zorro-antd

NzModalModule (nzDraggable): closing modal after dragging it makes it go back to initial position before close

Opened this issue · 1 comments

Screencast.from.14-10-2024.11.07.55.webm

Reproduction link

https://stackblitz.com/edit/angular-haf5bj?file=src%2Fapp%2Fapp.component.ts

Steps to reproduce

Open a draggable modal, drag it to the edge of the screen, close it.

What is expected?

The modal closes.

What is actually happening?

The modal goes back to initial position then closes.

Environment Info
ng-zorro-antd 18.1.1
Browser Chrome

Currently working arround this by setting style display at ' none' before closing.

Hi @alienard-wiremind ,
Thank you for reporting this issue 👍
A fix is on it's way.