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

Modal unexpectedly closes after clicking inside modal then dragging and releasing outside of the modal #3394

Closed
JeremiahMasters opened this issue May 2, 2019 · 0 comments

Comments

@JeremiahMasters
Copy link

Reproduction link

https://stackblitz.com/edit/ng-zorro-antd-start-xedkxr?file=src%2Fapp%2Fapp.component.html

Steps to reproduce

Click (mouse down) and highlight any text inside of the modal then drag the cursor outside and release (mouse up)

What is expected?

The modal remains open with the content highlighted

What is actually happening?

The modal unexpectedly closes

Environment Info
ng-zorro-antd 7.3.3
Browser Chrome 73

A use case where this is especially annoying is when trying to select all of the text inside an input field in the modal since there's very little room to avoid closing the modal when releasing the mouse click.

This also appears to be a duplicate of issue 615 which was closed. Is it possible to revisit this? Thanks.

#615

hsuanxyz added a commit to hsuanxyz/ng-zorro-antd that referenced this issue May 5, 2019
@hsuanxyz hsuanxyz self-assigned this May 5, 2019
hsuanxyz added a commit to hsuanxyz/ng-zorro-antd that referenced this issue May 17, 2019
Ricbet pushed a commit to Ricbet/ng-zorro-antd that referenced this issue Apr 9, 2020
…RRO#3400)

* fix(module:modal): should not close when mousedown in the body

* chore(module:modal): use variable to save classname string

close NG-ZORRO#3394
hsuanxyz added a commit to hsuanxyz/ng-zorro-antd that referenced this issue Aug 5, 2020
…RRO#3400)

* fix(module:modal): should not close when mousedown in the body

* chore(module:modal): use variable to save classname string

close NG-ZORRO#3394
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants