NG-ZORRO / ng-zorro-antd

Angular UI Component Library based on Ant Design
https://ng.ant.design
MIT License
8.88k stars 3.94k forks source link

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

Open alienard-wiremind opened 1 month ago

alienard-wiremind commented 1 month ago

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.

ParsaArvanehPA commented 1 month ago

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