Browser : Any
OS : Any
I have this checkbox control with the default value set to TRUE. But on the UI, the checkbox is off by default:
$this->controls['enableAnimation'] = [
'tab' => 'content',
'label' => esc_html__('Enable Animation', 'text-domain'),
'type' => 'checkbox',
'inline' => true,
'default' => true
];
Matej
July 25, 2024, 3:02pm
2
Hi @wpclevel ,
I suppose this comes from the custom element. Now, that may be obvious, but if you refresh the builder and add your element again, it is still not true by default?
Best regards,
M
Sorry for the late reply!
You’re right. Deleting the element and adding it anew fix the issue.
In my case, I added the checkbox control to an element which was already existed on the builder.
Thank you!
1 Like
Matej
July 28, 2024, 11:58am
4
Great!
Thank you for the confirmation. I’m happy that the problem is now solved. I’ll mark it as a NO BUG.
Best regards,
M