Services Plugins FAQs

Air color picker plugin not updating when placed in group focus

Hi everyone,
I am using the Zeroqode air color picker plugin which i love, in order for users to customize the colors of some elements.

Context:
I am dynamically setting the background color of a shape, based on the air color picker element. The air color picker element is placed in a group focus. And I have set the initial content color to be yellow (#FFD000).

Problem:
Now, when i load the page, my shape’s background is NOT yellow if the air color picker is in a group focus (scenario A). But the shape’s background IS yellow if the air color picker is NOT in a group focus (scenario B).
In scenario A, i need to reveal the group focus for the air color picker to pick up yellow as its initial color and for the shape’s background to update to yellow.

Does anyone have any idea how I can “force” the air color picker to work properly even if it’s placed in a group focus? Any help would be greatly appreciated.
Thank you!

Hello @42.decaen

Thank you for reaching out.

I am afraid it is not possible, the group focus is hidden(by default), and any of the elements inside are also hidden, the Air Color picker element can be read, only if it is visible on the page, once it becomes visible the color of the shape is changed. In this case, the shape can’t read the Air color picker’s value because it is hidden in the group focus, and therefore it is required for the air color picker to be visible on the page.

Please let me know if you have any other questions.

Have a nice day :slight_smile:

I see. Thank you @Kirill

Always happy to help @42.decaen

Please let me know if there is anything else I can help you with.

Take care :slight_smile: