casesandberg / casesandberg/react-color

Dragging doesn't work in popout windows

Open
#757 0 comments 13 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
12.3k
Forks
920
PR merge metrics
No merged PRs in 30d

Description

If you render a color picker in a pop out window, you cannot drag the color in that picker. See [here](https://codesandbox.io/s/react-color-in-popout-forked-nfx85?file=/index.js) for an example of this. This issue is present in both 2.18.1 and the latest 3.0 beta.

I suspect this is related to #357. I noticed that for example in Alpha.js and Hue.js the event listeners for mousemove are added to the window.

I was able to reproduce in Chrome, Edge and Firefox (all on Windows 10)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.