casesandberg / casesandberg/react-color

Color-Picker Eyedropper is not working for Windows OS Chrome

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

Description

Got this error when extracting color from eye-dropper
`index.js:2178 TypeError: Cannot read properties of undefined (reading 'trim')
at convertRgbToHex (convertRgbToHex.ts:4:1)
at ViviTemplateVariationViewer. (index.tsx:954:1)
at step (style.scss?2d85:26:1)
at Object.next (style.scss?2d85:26:1)
at fulfilled (style.scss?2d85:26:1)`

This works fine in ubuntu

Contributor guide

Open the contributing guide

Research direction

Reproduce the eyedropper extraction failure in Windows Chrome, then inspect convertRgbToHex.ts and the call at index.tsx:954. Trace which value is undefined before trim is called. Done means extracting a color no longer throws the reported TypeError and returns the expected color 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
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.