Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

mdDialog: clickOutsideToClose responds to mouseUp even if mouseDown was inside the dialog #3873

@BodrickLight

Description

@BodrickLight

Steps to reproduce:

  1. Open a dialog with clickOutsideToClose set to true.
  2. Hold mouse button down anywhere inside the dialog.
  3. Move the mouse outside the dialog while still holding the mouse button down.
  4. Release the mouse button.
  5. The dialog closes.

This can be annoying with slider controls inside the dialog - if you click and drag the slider outside the boundary of the dialog, the dialog will close. It seems like the dialog should only close if mouseDown and mouseUp are both outside the dialog.

http://codepen.io/anon/pen/yNRBBo

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions