Unable to get property 'unit' of undefined or null reference

// add section to type selection: task, project or milestone
gantt.config.lightbox.sections = [
{ name: “description”, height: 70, map_to: “text”, type: “textarea”, focus: true },
{ name: “type”, type: “typeselect”, map_to: “type” },
{ name: “time”, height: 72, type: “duration”, map_to: “auto” }
];

gantt.getLightboxSection('description').setValue('abc');  //this line 

Produces this error: Unable to get property ‘unit’ of undefined or null reference

How do I set a default value?

I have also tried

gantt.attachEvent("onLightbox", function (task) {
    task.text= 'abc';
    return true;
});

and

gantt.attachEvent(“onTaskCreated”, function(task){
task.text= ‘abc’;
return true;
});

Does not throw an error but does not set default value either.

Thank you

Hello,

Please use onBeforeLightbox event to set required task text
docs.dhtmlx.com/gantt/snippet/026cf58e