Skip to content
This repository was archived by the owner on Nov 7, 2019. It is now read-only.
This repository was archived by the owner on Nov 7, 2019. It is now read-only.

Modal closes when selecting text and releasing mouse outside - Chrome 73 click event target #63

@blopa

Description

@blopa

Browser version:

Chrome 73.0.3683.86

Original install method (e.g. download page, yum, from source, etc.):

Docker

Describe the bug:

Modal closes when releasing the mouse button after selecting text.

Steps to reproduce:

  1. Open a Modal with a text input (https://codepen.io/blopa-the-bold/pen/NmqRYK)
  2. Type something in the text input
  3. Drag left to select the text. Keep going past the boundary of the Modal, and release the mouse.
  4. The Modal will close.

Expected behavior:

The Modal should not close on mouse up, only on mouse down.

Screenshots (if relevant):

Gif

Extra info:

This seems to be a problem introduced on Chrome 73. Some other packages already fixed it in their code base, like elastic/eui#1747

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions