Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
OpenColorPicker() {
const theActiveMathField = this.props.theActiveMathField;
if (!this.pickr) {
this.pickr = Pickr.create({
el: '#colorBtn',
useAsButton: true,
components: {
// Main components
preview: true,
opacity: false,
hue: true,
// Input / output Options
interaction: {
hex: true,
rgba: true,
hsla: true,
hsva: true,