-
Notifications
You must be signed in to change notification settings - Fork 42
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
No color displaying initially when component's rendering is dynamic #52
Comments
I've run into this issue as well when trying to render it in a popup/modal. The workaround actually works but is just a workaround. It would be cool if this could be fixed in the component itself. |
I have the same issue. Like @craigdanj I'm using verte in a modal window. |
@mg98 I have the same problem, but I don't understand where I have to put the workaround code. Do you have an example? |
Hello @Phillipcodes, so you have a component that is not initially rendered and that includes verte, for example
Put a key on the verte component. Because when you now change the key, it will force the component to rerender.
I have actually not used the library since. |
@mg98 Thanks a lot for your fast help. In my case it worked without timeout, like this:
|
Ok perfect! I just remember that I had to put timeout and 1000ms were not even enough. But don't remember exactly what my situation was :) |
I have the same problem using sweet-modal :/ |
If the this.$nextTick(() => this.mounted = true); |
Describe the bug

Color in color picker initially not displaying. See screenshot:
To Reproduce
This actually only happens when you have the color picker in a component that is not initially rendered. In my case I wanted the color picker in a sidebar component, that only renders when it has to.
I could only work around by something like this:
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: