casesandberg / casesandberg/react-color

Why can't I select colors on Windows?

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

Description

```js
const {
defaultColor = "#ffffff",
onFinish,
innerPicker,
...rest
} = props

const [color, setColor] = useState(defaultColor)
// const [currentColor, setCurrentColor] = useState(defaultColor)
const [visibile, setVisibile] = useState(false)

// 选完一个颜色
const handleChangeComplete = (c: ColorResult, event: React.ChangeEvent) => {
setColor(c.hex)
if (onFinish) {
onFinish(color)
}
}


```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the Windows color-selection problem with the shown PhotoshopPicker usage and trace handleChangeComplete, handleChange, and the color state. Inspect the picker behavior and event flow around these handlers; done means selecting a color works on Windows and the reported callbacks receive the selected value.

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
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.