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

Get parsed color after init (MaterialComponent) #376

Open
KikoCosmetics opened this issue Oct 4, 2022 · 0 comments
Open

Get parsed color after init (MaterialComponent) #376

KikoCosmetics opened this issue Oct 4, 2022 · 0 comments

Comments

@KikoCosmetics
Copy link

KikoCosmetics commented Oct 4, 2022

I can't find a reliable way to get the computed hex value from the MaterialComponent.
In my use case I set the color programmatically by getting the background of a dom element.
Usually that element has a background in the format rgb(250, 250, 250).
What I need is get the hex value.
But the onChange and onChangeComplete events never fire when I change programmatically.
Am I doing something wrong?

I could read the hex property from the component instance, but as I said it's not reliable because I don't know when the value is ready. And frankly it's a bit awful.

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

No branches or pull requests

1 participant