casesandberg / casesandberg/react-color

Cannot read property 'r' of undefined

Open
#689 9 comments 0 reactions 0 assignees View on GitHub
can't reproduce need more info needs author update
Dominant language
JavaScript
Stars
12.3k
Forks
920
PR merge metrics
No merged PRs in 30d

Description

This looks fantastic on the demo page but is anyone using this outside of the demo?

The simplest thing possible doesn't work for me:

```js
render() {
return ;
}
```

fails with

```
Chrome.js:96 Uncaught TypeError: Cannot read property 'r' of undefined
at Chrome (Chrome.js:96)
```

which checks out looking at the source.

The documentation doesn't help. It says it should work. In fact hardly any of the documentation seems correct...

* `ChromePicker` doesn't accept a `color` arg in reality where as the docs say it does
* `ChromePicker` seems to want to want `rgb, hsl, hsv, hex` etc - hopefully I'm misunderstanding something as I expect just specifying one should be enough?

If anyone's using this for real surely surely you must have come across these issues, or have somehow avoided them. Pls help?

Contributor guide

Open the contributing guide

Research direction

Start with the standalone reproduction and inspect Chrome.js around line 96, then compare the component behavior with the documented props. Verify the reported runtime failure and whether the color prop and accepted color formats are accurately documented; done means the minimal example works or the required usage is clearly documented.

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
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.