editorShape Config

Hi there,

I am trying to use the multiselect type for an editor field.

Following this guide:
https://docs.dhtmlx.com/eventcalendar/guides/configuration/#combo-and-multiselect-types

The field appears and I can select multiple, but when you click “Save” I console.log the created object but the priority_key property is blank.

Is this a bug or am I missing something?

Urgent help with this would be greatly appreciated.

Thank you.

new eventCalendar.EventCalendar("#root", {
    editorShape: [
        ...eventCalendar.defaultEditorShape,
        {
            type: "multiselect", 
            key: "priority_key",
            label: "Event priority",
            options: [
                { id: 1, label: "high" },
                { id: 2, label: "medium" },
                { id: 3, label: "low" }
            ],
            config: {
                disabled: false,
                placeholder: "Select priority"
            },
            template: (option) => {
                return `<div className="multiselect-wraper">${option.label}</div>`
            }
        },
        // settings of other fields
    ]
});

Hello,

It seems to be a bug. I’ve reported the issue to our tracker for investigation. I’ll notify you of any updates.

1 Like