Mode of Color set “refine” when initializing the control.
And Deactivate a control using the disable method on the control.
Clicking the control in this state will result in a script error.
If I do the above process with the color palette open once, then that’s fine.
I was able to reproduce this issue, it seems like this is a bug. I just created a bug report for this. Until it is fixed, as a workaround, you can turn off the enhanceoption on the component.