casesandberg/react-color
View on GitHubMake User Controlled Components Uncontrolled When Focused
Open
#404 opened on Aug 31, 2017
0 comments (0 comments)3 reactions (3 reactions)0 assignees (0 assignees)JavaScript11,679 stars (11,679 stars)946 forks (946 forks)batch import
help wanted
Description
- Alpha
- Hue
- Saturation
Contributor guide
- Tech stack
- javascriptreact
- Domain
- frontend
- Issue type
- feature
- DifficultyEstimated implementation difficulty for a new contributor, from 1 for very small changes to 5 for expert-level work.
- 3
- Estimated timeA rough time range for an experienced contributor to investigate, implement, test, and prepare a pull request.
- half day
- Activity statusHow available the issue appears right now: fresh, active, stale, blocked, or waiting on maintainer input.
- stale
- ClarityHow clearly the issue explains the expected change, acceptance criteria, and next step.
- needs investigation
- Prerequisites
- Reactcontrolled/uncontrolled components pattern
- Newbie friendlinessA 1-100 score estimating how approachable this issue is for first-time contributors.
- 30
- Research direction
- The issue lacks a clear description of the expected behavior. First, examine how the color picker components (Alpha, Hue, Saturation) are currently implemented, likely in the `packages` directory. Understand the controlled/uncontrolled pattern used. Then, implement logic to switch from controlled to uncontrolled when the component receives focus. Look for similar patterns in the codebase or in React documentation. The PR should include tests to ensure the behavior works as intended.