#TextStateFeature dropdown coming as disabled

2 messages · Page 1 of 1 (latest)

stark topaz
#

Current Config:

export const CallToActionBlock: Block = {
  slug: 'call-to-action',
  interfaceName: 'ICallToActionBlock',
  labels: {
    singular: 'Call To Action',
    plural: 'Call To Actions',
  },
  fields: [
    {
      name: 'content',
      type: 'richText',
      editor: lexicalEditor({
        features: ({ defaultFeatures }) => {
          return [
            ...defaultFeatures,
            TextStateFeature({
              state: {
                colors: {
                  moreish: {
                    css: {
                      color: '#FFC170',
                    },
                    label: 'Moreish',
                  }
                },
              },
            })
          ]
        },
      }),
      required: true,
    },
    link(),
  ],
}
naive hillBOT