casesandberg / casesandberg/react-color
react-color usage with contentEditable
Open
- Dominant language
- JavaScript
- Stars
- 12.3k
- Forks
- 920
- PR merge metrics
- No merged PRs in 30d
Description
Hey,
During development I've found out that selection made on div with contentEditable:
```
```
Is cleared off after trying to pick some color through `SketchPicker` component.
Although after a bit of research also found out that it's likely to be a problem in common components.
Here's the demo:
https://codesandbox.io/s/awesome-fog-16nyz?file=/src/App.js
I will be happy to fix this issue if contributions are open. 🤗
Please let me know and I will prepare the PR.
Contributor guide
Research direction
Start with the linked CodeSandbox reproduction and inspect how SketchPicker interacts with the contentEditable selection. Trace the common component behavior involved in opening or using the picker, then verify that the selection is preserved after choosing a color. The issue does not name repository files or tests.
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
- 35/100