Checkbox doesn't render if placed last in lightbox.sections

I’m using a checkbox in my lightbox. When it’s placed as the the last item it doesn’t appear in the lightbox. However, the associated label does appear and a javascript error is also thrown.

dhtmlxscheduler_editors.js:9
Uncaught TypeError: Cannot read property ‘previousSibling’ of null

This works:

scheduler.config.lightbox.sections = [ 
{name: 'appttype', height: 23, type: 'select', options: Cal.lbApptTypes, map_to: 'type' },
{ name: 'staff', height: 23, type: 'select', options: Cal.sections, map_to: 'section_id' },
{ name: 'time', height: 72, type: 'time', map_to: 'auto' },
{ name: 'standby', type: 'checkbox', checked_value: 'yes', unchecked_value: 'no' },
{ name: 'notes', height: 80, type: 'textarea' }
]

This fails:

scheduler.config.lightbox.sections = [ 
{name: 'appttype', height: 23, type: 'select', options: Cal.lbApptTypes, map_to: 'type' },
{ name: 'staff', height: 23, type: 'select', options: Cal.sections, map_to: 'section_id' },
{ name: 'time', height: 72, type: 'time', map_to: 'auto' },
{ name: 'notes', height: 80, type: 'textarea' },
{ name: 'standby', type: 'checkbox', checked_value: 'yes', unchecked_value: 'no' },
]

I’ve attached 2 screenshots to illustrate.
good.png and bad.png



Hello,

Thank you very much for your feedback. I can confirm this issue.
We will look into it and post updated dhtmlxscheduler_editors.js file.

Best regards,
Ilya

Thanks,it’s not a big deal really. I was just wondering why it happened. Appreciate you guys looking into it!