Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix VariableColorSettingComponent to display color correctly #163

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

oliviaBahr
Copy link

@oliviaBahr oliviaBahr commented May 17, 2024

Before:
(shows the correct color but only after an interaction)

before.mov

Now it works as expected.

This is a workaround fix.

I'm not sure why it was displaying like that in the first place. I hunted for the bug for bit but wasn't able to find it (it's possibly in @simonweb/pickr and I didn't want to mess with that).

I just added a line that explicitly sets the color immediately after the pickr component is created.
this.pickr.setColor(defaultColor);
From my extremely minimal understanding of the repo, I think the line should be redundant but isn't.
If the underlying bug is fixed, this line should be deleted.

…nteraction

Added a line that sets the color of the little preview window when the
Pickr is created.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant