simonwep / simonwep/pickr

setColor does not update the visual color of the picker until user interaction

Open
#347 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

unconfirmed
Dominant language
JavaScript
Stars
4.5k
Forks
292
PR merge metrics
No merged PRs in 30d

Description

Your question

When I call setColor on the Pickr instance, the internal color value updates, but the visible color preview and button do not reflect the change immediately. The visual update only happens after the user interacts with the picker.

Is there any way to force Pickr to update the visual color immediately after calling setColor?

Your environment:
Version (see Pickr.version): 1.9.1
Used bundle (es5 or normal one): es5
Used theme (default is classic): monolith
Browser-version:  Firefox 139.0.4
Operating-system:  Windows 11

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with Pickr 1.9.1 using the ES5 bundle and monolith theme, then trace the setColor path and the visual preview and button updates. Done means calling setColor updates the visible color immediately without user interaction; no files or tests are named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.