Skip to content

Modal is closing when I select text with mousedown inside and mouseup outside modal #111

@mankey-ru

Description

@mankey-ru

Version

vue-final-modal: 2.3.1
vue: 2.6.12

OS

Windows

Reproduction Link

https://codesandbox.io/s/cocky-night-0ysyb?file=/src/App.vue

Steps to reproduce

Select the text with a sloppy move: mousedown is inside the modal and mouse button released when cursor is on overlay

What is Expected?

Text is selected and modal is not closed

What is actually happening?

modal closed. Probably event type should be mousedown OR event handler should check Window.getSelection()

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions