Replies: 1 comment
-
|
As is explained in the documentation (README.md) section Manually updating the thumbnail, you need to trigger an const myColorField = document.querySelector('#color-field');
myColorField.value = '#6a0dad';
myColorField.dispatchEvent(new Event('input', { bubbles: true })); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey there, i had some trouble setting the preview color when changing the textboxes input fields with js. always had transparent colors instad of colored ones.

i made this simple function to work around but maybe something like a "refreshPreviews()" would be nice.
thank you and have a great day.
Beta Was this translation helpful? Give feedback.
All reactions