-
-
Notifications
You must be signed in to change notification settings - Fork 292
Open
Labels
unconfirmedThe problem isn't really clearThe problem isn't really clear
Description
What is the current behavior?
Documenting that setColor
called right after Pickr declarations silently NO-OPs and fails to change color
Please provide the steps to reproduce and create a JSFiddle.
shellColor = Pickr.create({...pickerOpts, el: shellColorDiv});
shellColor.setColor(`#FF0000`);
// Color not set `#FF0000` but if we wrap in setTimeout works normally
🔗 Fiddle With Bug Active
What is the expected behavior?
setColor should work or the behavior should be documented
Your environment:
Version (see Pickr.version): Latest
Used bundle (es5 or normal one): normal
Used theme (default is classic): classic
Browser-version: FireFox
Operating-system: MacOS
Thoughts
I'd guess that setColor is clobbered by some race-condition but unclear why. If a PR would be accepted for a fix, happy to take a stab at it.
Metadata
Metadata
Assignees
Labels
unconfirmedThe problem isn't really clearThe problem isn't really clear