You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
wrybread
changed the title
How to set initial color without triggering color:change callback?
How to set initial color without triggering color:change callback? (solved)
Oct 30, 2023
When I set the color when the page first loads:
colorPicker.color.set("rgb(255, 16, 65)");
It fires my color:change callback, which makes my script think someone has selected a color.
This breaks my script since I only want to send the color choice if it was manually selected.
Is there a way to set the initial color color on the picker without triggering the color:change callback?
The text was updated successfully, but these errors were encountered: