casesandberg / casesandberg/react-color

Unwanted `onChangeComplete` triggered

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

Description

When I press down the mouse button on the color palette, the `onChangeComplete` gets triggered,
then I drag to another color, after some milliseconds (~30-100?), it gets triggered again,
finally, I release the mouse button, nothing get triggered.

Expected :
Mouse down -> nothing
Drag -> `onChange`
Mouse up -> `onChangeComplete`

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the mouse interaction on the color palette and trace how its mouse-down, drag, and mouse-up events invoke onChange and onChangeComplete. Done means mouse-down invokes neither callback, dragging invokes onChange, and mouse-up invokes onChangeComplete.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.